Skip to content

Commit 4b77682

Browse files
jfrochesoedirgo
authored andcommitted
ci: fix nix cache configuration
1 parent 521a974 commit 4b77682

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/nix-build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,14 +46,14 @@ jobs:
4646
- name: Setup cache script
4747
if: ${{ github.secret_source == 'Actions' }}
4848
run: |
49-
mkdir -p /etc/nix
49+
sudo mkdir -p /etc/nix
5050
cat << 'EOF' | sudo tee /etc/nix/upload-to-cache.sh > /dev/null
5151
#!/usr/bin/env bash
5252
set -eouf
5353
export IFS=' '
5454
echo /nix/var/nix/profiles/default/bin/nix copy --to 's3://nix-postgres-artifacts?secret-key=nix-secret-key' \$OUT_PATHS
5555
EOF
56-
chmod +x /etc/nix/upload-to-cache.sh
56+
sudo chmod +x /etc/nix/upload-to-cache.sh
5757
- name: Install nix
5858
uses: DeterminateSystems/nix-installer-action@main
5959
if: ${{ github.secret_source == 'Actions' }}

0 commit comments

Comments
 (0)