mirror of
https://github.com/obi1kenobi/cargo-semver-checks-action.git
synced 2024-11-29 11: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
|
id: action_major
|
||||||
uses: ./action/
|
uses: ./action/
|
||||||
continue-on-error: true
|
continue-on-error: true
|
||||||
- name: Check if the action failed
|
- name: Check action outcome
|
||||||
if: steps.action_major.outcome != 'failure'
|
run: |
|
||||||
run: exit 1
|
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