Make checking the outcome more descriptive

This commit is contained in:
Mieszko Grodzicki 2023-01-01 13:17:05 +01:00 committed by Predrag Gruevski
parent 39b7aa82fa
commit aa34edcb6d

View file

@ -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