Skip to content

Commit

Permalink
fix: final job condition (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
kukkok3 authored Jan 8, 2025
1 parent bdb2e15 commit 2929028
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -163,8 +163,15 @@ jobs:

final:
needs: [check, build, package, test, release]
if: (!failure() && !cancelled())
if: ${{ always() && (contains(needs.*.result, 'failure') || !failure() && !cancelled()) }}
runs-on: ubuntu-latest
steps:
- name: Final
run: echo "All done"
run: |
if [[ "${{ contains(needs.*.result, 'failure') }}" == "true" ]]
then
echo "Run failed"
exit 1
else
echo "All done"
fi

0 comments on commit 2929028

Please sign in to comment.