Skip to content

Commit

Permalink
ci(gh-actions): Define "results" job that depends on the result of th…
Browse files Browse the repository at this point in the history
…e whole matrix
  • Loading branch information
PetarKirov committed Jan 25, 2024
1 parent fff9926 commit 7668f9d
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,3 +54,16 @@ jobs:

- name: Build ${{ matrix.package }}
run: nix build -L --json --no-link '.#${{ matrix.attrPath }}'

results:
if: ${{ always() }}
runs-on: ubuntu-latest
name: Final Results
needs: [build]
steps:
- run: exit 1
if: >-
${{
contains(needs.*.result, 'failure')
|| contains(needs.*.result, 'cancelled')
}}

0 comments on commit 7668f9d

Please sign in to comment.