From c3983a2ff0a18147af8d75dc3be4c22f76992bd7 Mon Sep 17 00:00:00 2001 From: Juan Hoyos <19413848+hoyosjs@users.noreply.github.com> Date: Tue, 28 Mar 2023 12:17:01 -0700 Subject: [PATCH] Create action to check servicing label (#84038) --- .github/workflows/check-service-labels.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 .github/workflows/check-service-labels.yml diff --git a/.github/workflows/check-service-labels.yml b/.github/workflows/check-service-labels.yml new file mode 100644 index 0000000..bcbdafa --- /dev/null +++ b/.github/workflows/check-service-labels.yml @@ -0,0 +1,21 @@ +name: check-service-labels + +permissions: + pull-requests: read + +on: + pull_request: + 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 -- 2.7.4