From aa34edcb6d133456518f836a2e1d1d757eb5fb46 Mon Sep 17 00:00:00 2001 From: Mieszko Grodzicki Date: Sun, 1 Jan 2023 13:17:05 +0100 Subject: [PATCH] Make checking the outcome more descriptive --- .github/workflows/ci.yml | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f0ae148..610ee23 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -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