Add a final result step

This commit is contained in:
traxys 2024-05-10 10:08:34 +02:00
parent 76f93491f6
commit aa9aad0d33

View file

@ -40,3 +40,16 @@ jobs:
authToken: '${{ secrets.CACHIX_AUTH_TOKEN }}'
- run: NIXPKGS_ALLOW_UNFREE=1 nix build --impure '.#${{ matrix.package }}'
- run: nix build .#checks.x86_64-linux.launch
# This allows us to have a branch protection with matrix
build-status:
runs-on: ubuntu-latest
needs: [build]
if: always()
steps:
- name: Successful build
if: ${{ !(contains(needs.*.result, 'failure')) }}
run: exit 0
- name: Failing build
if: ${{ contains(needs.*.result, 'failure') }}
run: exit 1