Skip to content

Commit b147e6a

Browse files
committed
ci: stringify builds to JSON
1 parent 0322376 commit b147e6a

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/check.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,10 @@ jobs:
2727
id: set-matrix
2828
run: |
2929
set -Eeu
30-
matrix="$(nix eval --json .#githubActions.matrix)"
30+
matrix=$(
31+
nix eval --json .#githubActions.matrix \
32+
--apply 'map (m: m // { builds = builtins.toJSON m.builds; })'
33+
)
3134
echo "matrix=$matrix" >> "$GITHUB_OUTPUT"
3235
3336
build:
@@ -40,4 +43,4 @@ jobs:
4043
secrets: inherit
4144
with:
4245
name: ${{ matrix.name }}
43-
builds: ${{ toJSON(matrix.builds) }}
46+
builds: ${{ matrix.builds }}

0 commit comments

Comments
 (0)