diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e24ffc9..6c88e20 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,7 +22,7 @@ jobs: - name: "Determine hosts" id: hosts run: | - hostnames="$(nix eval .#nixosConfigurations --apply builtins.attrNames --json)" + hostnames="$(nix eval .#nixosConfigurations --apply builtins.attrNames --json | tr '\n' ', ' | sed 's/,$//')" printf "hostnames=%s\n" "${hostnames}" >> "${GITHUB_OUTPUT}" build: @@ -41,7 +41,7 @@ jobs: nix_path: nixpkgs=channel:nixos-unstable - name: "Debug needs outputs" run: | - printf "%s\n" "${{ needs.determine-hosts.outputs.hosts }}" + printf "%q \n" "${{ needs.determine-hosts.outputs.hosts }}" - name: Debug Matrix run: | echo "The matrix value is: ${{ matrix.hostname }}"