Skip to content

Commit

Permalink
[7.0] Add check-service-labels.yml to unblock base branch PRs (#84331)
Browse files Browse the repository at this point in the history
Co-authored-by: carlossanlop <carlossanlop@users.noreply.github.com>
  • Loading branch information
carlossanlop and carlossanlop authored Apr 5, 2023
1 parent 6a533c1 commit c367508
Showing 1 changed file with 23 additions and 0 deletions.
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

0 comments on commit c367508

Please sign in to comment.