Skip to content

Commit

Permalink
omg
Browse files Browse the repository at this point in the history
  • Loading branch information
nicklan committed Oct 9, 2024
1 parent 409826c commit 2b330e7
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/semver-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,26 +38,26 @@ jobs:
run: |
cargo install cargo-semver-checks --locked
- name: Run check
id: check
continue-on-error: true
shell: bash
run: |
cargo semver-checks --all-features --baseline-rev ${{ github.event.pull_request.base.sha }}
- name: On Failure
id: set_failure
if: failure()
if: ${{ steps.check.outcome == 'failure' }}
run: |
echo "Checks failed"
echo "check_status=failure" >> $GITHUB_STATE
- name: On Success
id: set_success
if: success()
if: ${{ steps.check.outcome == 'success' }}
run: |
echo "Checks succeed"
echo "check_status=success" >> $GITHUB_STATE
outputs:
check_status: ${{ steps.set_failure.outputs.check_status || steps.set_success.outputs.check_status }}
add_label_if_needed:
if: always() # always run regardless
needs: check_if_pr_breaks_semver
runs-on: ubuntu-latest
permissions:
Expand Down

0 comments on commit 2b330e7

Please sign in to comment.