1
0
Fork 0
mirror of https://github.com/VSadov/Satori.git synced 2025-06-08 03:27:04 +09:00
Satori/.github/workflows/check-service-labels.yml
Carlos Sánchez López 6303a6c11c
Bring back yml necessary change types in label checkers (#114166)
There are some `on pull_request_target types` in the label checking yml files that were removed but they are actually necessary, so the labeler keeps working after for example: pushing new commits, pressing the update the branch, closing and opening the PR.
2025-04-02 14:20:57 -06:00

25 lines
836 B
YAML

name: check-service-labels
permissions:
pull-requests: read
on:
pull_request_target:
types: [opened, edited, reopened, labeled, unlabeled, synchronize]
branches:
- 'release/**'
jobs:
check-labels:
if: github.repository == 'dotnet/runtime'
runs-on: ubuntu-latest
steps:
- name: Check 'Servicing-approved' label
run: |
echo "Merging permission is enabled for servicing PRs when the 'Servicing-approved' label is applied."
if [ "${{ contains(github.event.pull_request.labels.*.name, 'Servicing-approved') }}" = "true" ]; then
exit 0
else
echo "::error:: 'Servicing-approved' label not applied to the PR yet. More information: https://github.com/dotnet/runtime/blob/main/docs/project/library-servicing.md#approval-process"
exit 1
fi