forked from Bos55/nix-config
without json parse
This commit is contained in:
parent
ea3492ee27
commit
a5ed47a478
1 changed files with 2 additions and 2 deletions
4
.github/workflows/build.yml
vendored
4
.github/workflows/build.yml
vendored
|
|
@ -22,7 +22,7 @@ jobs:
|
||||||
- name: "Determine hosts"
|
- name: "Determine hosts"
|
||||||
id: hosts
|
id: hosts
|
||||||
run: |
|
run: |
|
||||||
hostnames="$(nix eval .#nixosConfigurations --apply builtins.attrNames --json | tr '\n' ', ' | sed 's/,$//')"
|
hostnames="$(nix eval .#nixosConfigurations --apply builtins.attrNames --json)"
|
||||||
printf "hostnames=%s\n" "${hostnames}" >> "${GITHUB_OUTPUT}"
|
printf "hostnames=%s\n" "${hostnames}" >> "${GITHUB_OUTPUT}"
|
||||||
|
|
||||||
build:
|
build:
|
||||||
|
|
@ -32,7 +32,7 @@ jobs:
|
||||||
needs: determine-hosts
|
needs: determine-hosts
|
||||||
strategy:
|
strategy:
|
||||||
matrix:
|
matrix:
|
||||||
hostname: ${{ fromJSON(needs.determine-hosts.outputs.hosts) }}
|
hostname: ${{ needs.determine-hosts.outputs.hosts }}
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v5
|
- uses: actions/checkout@v5
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue