Skip to content

Commit

Permalink
Add required vars for gh cli
Browse files Browse the repository at this point in the history
  • Loading branch information
Lorak-mmk committed Jan 10, 2024
1 parent 0ce0697 commit f0c47df
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions .github/workflows/semver_checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}

0 comments on commit f0c47df

Please sign in to comment.