Skip to content

Commit

Permalink
ci(test): fix incorrect gc command
Browse files Browse the repository at this point in the history
  • Loading branch information
klarkc committed Jan 5, 2024
1 parent 91ff80b commit eb23e8c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ jobs:
comm -13 <(sort /tmp/store) <(./.github/workflows/list-nix-store.sh) > /tmp/store-new
mkdir -p ~/.ssh/ && touch ~/.ssh/known_hosts
cp .github/workflows/known_hosts ~/.ssh/known_hosts
ssh ssh://[email protected] "free_space_kb=$(df -k --output=avail / | tail -n 1) nix-collect-garbage -d --delete-older-than 30d --max-freed $(( (d=5000000-free_space_kb) < 0 ? 0 : d ))"
ssh ssh://[email protected] "free_space_kb=`df -k --output=avail / | tail -n 1`; nix-collect-garbage -d --delete-older-than 30d --max-freed \$(( (d=5000000-free_space_kb) < 0 ? 0 : d ))k"
(cat /tmp/store-new | nix -v copy -s --stdin --to ssh://[email protected]) || EXIT_CODE=$?
echo $EXIT_CODE

0 comments on commit eb23e8c

Please sign in to comment.