Skip to content
Prev Previous commit
Next Next commit
[7.0] Add check-service-labels.yml to unblock base branch PRs (#84331)
Co-authored-by: carlossanlop <[email protected]>
  • Loading branch information
carlossanlop and carlossanlop authored Apr 5, 2023
commit c367508a67bad8bf1bb3ba11123ce0b880726f8b
23 changes: 23 additions & 0 deletions .github/workflows/check-service-labels.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: check-service-labels

permissions:
pull-requests: read

on:
pull_request:
types: [opened, edited, reopened, labeled, unlabeled, synchronize]
branches:
- 'release/**'

jobs:
check-labels:
runs-on: ubuntu-latest
steps:
- name: Check servicing labels
run: |
if [ "${{ contains(github.event.pull_request.labels.*.name, 'Servicing-approved') }}" = "true" ]; then
exit 0
else
exit 1
fi