Skip to content

Commit

Permalink
post-test
Browse files Browse the repository at this point in the history
  • Loading branch information
namse committed Sep 8, 2023
1 parent 6cb3c62 commit c6f7f5c
Showing 1 changed file with 17 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/all.yml
Original file line number Diff line number Diff line change
Expand Up @@ -51,3 +51,20 @@ jobs:
echo "::error::$(git diff --name-only)"
exit 1
fi
post-test:
if: always()
runs-on: ubuntu-latest
needs:
- run-commands
steps:
- run: |
echo ${{ join(needs.*.result, ',') }}
any_test_failed=${{ contains(join(needs.*.result, ','), 'failure') }}
echo $any_test_failed
if [[ $any_test_failed == "true" ]]; then
echo "::error::There are failed job"
exit 1
else
echo "Good. No test failed"
fi

0 comments on commit c6f7f5c

Please sign in to comment.