Skip to content

Commit

Permalink
Fix nix-matrix job status
Browse files Browse the repository at this point in the history
The nix-matrix job was reported as successful when in reality the nix
eval command had a non-zero exit code and failed to generate the matrix.
By splitting the echo and nix eval commands up into two lines the exit
code is properly detected and fails the nix-matrix job.
  • Loading branch information
matrss committed Dec 29, 2023
1 parent faab110 commit 4e6c7af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/nix-github-actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ jobs:
name: Generate Nix Matrix
run: |
set -Eeu
echo "matrix=$(nix eval --json '.#githubActions.matrix')" >> "$GITHUB_OUTPUT"
matrix="$(nix eval --json '.#githubActions.matrix')"
echo "matrix=$matrix" >> "$GITHUB_OUTPUT"
nix-build:
needs: nix-matrix
Expand Down

0 comments on commit 4e6c7af

Please sign in to comment.