mirror of
https://github.com/obi1kenobi/cargo-semver-checks-action.git
synced 2024-11-25 09:29:32 +01:00
Make checking the outcome more descriptive
This commit is contained in:
parent
39b7aa82fa
commit
aa34edcb6d
1 changed files with 8 additions and 3 deletions
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
|
@ -37,6 +37,11 @@ jobs:
|
|||
id: action_major
|
||||
uses: ./action/
|
||||
continue-on-error: true
|
||||
- name: Check if the action failed
|
||||
if: steps.action_major.outcome != 'failure'
|
||||
run: exit 1
|
||||
- name: Check action outcome
|
||||
run: |
|
||||
if [[ "${{ steps.action_major.outcome }}" != 'failure' ]]; then
|
||||
echo "Error! The action should have failed because of the breaking change, but it has not."
|
||||
exit 1
|
||||
else
|
||||
echo "OK! The action has failed as expected on the breaking change."
|
||||
fi
|
||||
|
|
Loading…
Reference in a new issue