From 37a6bc6e13983cd35ee2fc9372a04c47f7cbca80 Mon Sep 17 00:00:00 2001 From: Andreas Thaler Date: Wed, 2 Oct 2024 10:20:15 +0200 Subject: [PATCH] chore: Fix label check (#1488) --- .github/workflows/pr-github-checks.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-github-checks.yml b/.github/workflows/pr-github-checks.yml index e606761ee..f8958a9aa 100644 --- a/.github/workflows/pr-github-checks.yml +++ b/.github/workflows/pr-github-checks.yml @@ -31,7 +31,7 @@ jobs: if: always() run: | gh api --jq '.labels.[].name' /repos/${{ github.repository }}/pulls/${{ github.event.number }} | \ - grep -q '^area/' || (echo "area label missing"; exit 1) + grep -q '^area\/' || (echo "area label missing"; exit 1) env: GH_TOKEN: ${{ github.token }} @@ -39,7 +39,7 @@ jobs: if: always() run: | gh api --jq '.labels.[].name' /repos/${{ github.repository }}/pulls/${{ github.event.number }} | \ - grep -q '^kind/' || (echo "kind label missing"; exit 1) + grep -q '^kind\/' || (echo "kind label missing"; exit 1) env: GH_TOKEN: ${{ github.token }} @@ -57,7 +57,7 @@ jobs: if: always() run: | gh api --jq '.labels.[].name' /repos/${{ github.repository }}/pulls/${{ github.event.number }} | \ - grep -q '^do-not-merge/$' && (echo "do-not-merge label detected -> preventing merge by failing the job"; exit 1) + grep -q '^do-not-merge\/' && (echo "do-not-merge label detected -> preventing merge by failing the job"; exit 1) env: GH_TOKEN: ${{ github.token }}