From e3a722f9d7ee8f46859d084af864528772be773a Mon Sep 17 00:00:00 2001 From: Mahmoud Mazouz Date: Fri, 3 May 2024 17:44:21 +0200 Subject: [PATCH] feat: Add check-labels workflow (#128) --- .github/workflows/check-labels.yml | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 .github/workflows/check-labels.yml diff --git a/.github/workflows/check-labels.yml b/.github/workflows/check-labels.yml new file mode 100644 index 0000000..921fd95 --- /dev/null +++ b/.github/workflows/check-labels.yml @@ -0,0 +1,12 @@ +name: Check labels + +on: + workflow_call: + +jobs: + main: + runs-on: ubuntu-latest + steps: + - run: gh pr view ${{ github.event.pull_request.number }} --json labels --repo ${{ github.repository }} | jq -e '.labels != []' + env: + GH_TOKEN: ${{ secrets.BOT_TOKEN_WORKFLOW }}