From f0c47df18bf5cebe19ac2b6865f1ea53bf4b8850 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Karol=20Bary=C5=82a?= Date: Wed, 10 Jan 2024 17:18:22 +0100 Subject: [PATCH] Add required vars for `gh` cli --- .github/workflows/semver_checks.yml | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/.github/workflows/semver_checks.yml b/.github/workflows/semver_checks.yml index 822687c0e7..566561f919 100644 --- a/.github/workflows/semver_checks.yml +++ b/.github/workflows/semver_checks.yml @@ -29,8 +29,16 @@ jobs: run: cargo semver-checks --workspace --baseline-rev ${{ github.event.pull_request.base.sha }} continue-on-error: true - name: Remove breaking label on success - run: gh pr edit ${{ github.event.number }} --remove-label semver-checks-breaking + run: gh pr edit "$NUMBER" --remove-label semver-checks-breaking if: steps.semver-pr-check.outcome != 'success' + env: + NUMBER: ${{ github.event.number }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }} - name: Add breaking label on failure - run: gh pr edit ${{ github.event.number }} --add-label semver-checks-breaking + run: gh pr edit "$NUMBER" --add-label semver-checks-breaking if: steps.semver-pr-check.outcome == 'success' + env: + NUMBER: ${{ github.event.number }} + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} + GH_REPO: ${{ github.repository }}