From b147e6a6afb9cc9d8656f3877b300b47b55e5d79 Mon Sep 17 00:00:00 2001 From: Matt Sturgeon Date: Sun, 25 May 2025 23:30:14 +0100 Subject: [PATCH] ci: stringify `builds` to JSON --- .github/workflows/check.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/check.yml b/.github/workflows/check.yml index 90fb3fec..3c32986d 100644 --- a/.github/workflows/check.yml +++ b/.github/workflows/check.yml @@ -27,7 +27,10 @@ jobs: id: set-matrix run: | set -Eeu - matrix="$(nix eval --json .#githubActions.matrix)" + matrix=$( + nix eval --json .#githubActions.matrix \ + --apply 'map (m: m // { builds = builtins.toJSON m.builds; })' + ) echo "matrix=$matrix" >> "$GITHUB_OUTPUT" build: @@ -40,4 +43,4 @@ jobs: secrets: inherit with: name: ${{ matrix.name }} - builds: ${{ toJSON(matrix.builds) }} + builds: ${{ matrix.builds }}