Skip to content

Commit 9ac6003

Browse files
committed
Fix keep-derivations step
1 parent a0f240f commit 9ac6003

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,14 +39,11 @@ jobs:
3939
run: |
4040
set -euo pipefail
4141
sudo mkdir -p /etc/nix
42-
while read -r line; do
42+
for line in "keep-outputs = true" "keep-derivations = true"; do
4343
if ! grep -qF "$line" /etc/nix/nix.conf 2>/dev/null; then
4444
echo "$line" | sudo tee -a /etc/nix/nix.conf >/dev/null
4545
fi
46-
done <<'EOF'
47-
keep-outputs = true
48-
keep-derivations = true
49-
EOF
46+
done
5047
sudo systemctl restart nix-daemon || true
5148
5249
- name: Enable Nix cache

0 commit comments

Comments
 (0)