From bfbe4204e75de965f8cbcdf3bb2cb72c83b96615 Mon Sep 17 00:00:00 2001 From: Tibo De Peuter Date: Sun, 8 Feb 2026 12:04:02 +0100 Subject: [PATCH] More specific hostnames --- .github/workflows/build.yml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 44248aa..baafa8e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -17,7 +17,8 @@ jobs: - name: "List hosts" id: hosts run: | - nix eval .#nixosConfigurations --apply builtins.attrNames --json + hosts="$(nix eval .#nixosConfigurations --apply builtins.attrNames --json)" + echo "hostnames=${hosts}" >> "$GITHUB_OUTPUT" outputs: hosts: ${{ steps.hosts.outputs }} @@ -28,7 +29,7 @@ jobs: needs: determine_hosts strategy: matrix: - hostname: ${{ fromJSON(needs.determine_hosts.outputs.hosts) }} + hostname: ${{ fromJSON(needs.determine_hosts.outputs.hosts.hostnames) }} steps: - uses: actions/checkout@v5 @@ -39,7 +40,7 @@ jobs: env: hostname: ${{ matrix.hostname }} run: | - echo "${hostname}" + echo "Hostname: ${hostname}" - run: | nixos-rebuild build --flake ".#${hostname}"