Skip to content

Commit 978a5cb

Browse files
committed
wip: debug upload error
1 parent 49cf27f commit 978a5cb

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

.github/workflows/nix-build.yml

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
#!/usr/bin/env bash
5252
set -eouf
5353
export IFS=' '
54-
/nix/var/nix/profiles/default/bin/nix copy --to 's3://nix-postgres-artifacts?secret-key=nix-secret-key' $OUT_PATHS
54+
/nix/var/nix/profiles/default/bin/nix copy --to 's3://nix-postgres-artifacts?secret-key=nix-secret-key' $OUT_PATHS >> /tmp/nix-upload.log 2>&1
5555
EOF
5656
sudo chmod +x /etc/nix/upload-to-cache.sh
5757
- name: Install nix
@@ -78,3 +78,8 @@ jobs:
7878
AWS_ACCESS_KEY_ID: ${{ env.AWS_ACCESS_KEY_ID }}
7979
AWS_SECRET_ACCESS_KEY: ${{ env.AWS_SECRET_ACCESS_KEY }}
8080
AWS_SESSION_TOKEN: ${{ env.AWS_SESSION_TOKEN }}
81+
- name: Results
82+
if: ${{ always() }}
83+
run: |
84+
echo "Nix upload result:"
85+
cat /tmp/nix-upload.log

0 commit comments

Comments
 (0)