From 0458c346bc7925ed0b2260ddbded2d44e78dfabc Mon Sep 17 00:00:00 2001 From: teutat3s Date: Tue, 14 May 2024 23:22:09 +0200 Subject: [PATCH] ci: set pipefail --- .forgejo/workflows/check.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.forgejo/workflows/check.yml b/.forgejo/workflows/check.yml index 5d03cdc..0a6fcd1 100644 --- a/.forgejo/workflows/check.yml +++ b/.forgejo/workflows/check.yml @@ -52,6 +52,7 @@ jobs: - name: Run flake checks run: | + set -exuo pipefail # Prevent cache garbage collection by creating GC roots for target in $(nix flake show --json --all-systems | jq ' .["nixosConfigurations"] | @@ -60,7 +61,7 @@ jobs: ' | tr -d '"' ); do nix --print-build-logs --verbose --accept-flake-config --access-tokens '' \ - build --out-link ./result-$target ".#nixosConfigurations.${target}.config.system.build.toplevel" + build --out-link ./result-"$target" ".#nixosConfigurations.${target}.config.system.build.toplevel" done nix --print-build-logs --verbose --accept-flake-config --access-tokens '' flake check