Commit d71c79f 1 parent 77a0e57 commit d71c79f Copy full SHA for d71c79f
File tree 1 file changed +5
-3
lines changed
1 file changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -108,9 +108,11 @@ jobs:
108
108
run : |
109
109
set -ex
110
110
attic=$(nix build --no-link --print-out-paths github:nixos/nixpkgs/nixos-unstable#attic-client)/bin/attic
111
+ realpath=$(nix build --no-link --print-out-paths github:nixos/nixpkgs/nixos-unstable#coreutils)/bin/realpath
111
112
$attic login default "$ATTIC_SERVER" "$ATTIC_TOKEN"
112
113
$attic cache info "$ATTIC_CACHE"
113
- $attic push "$ATTIC_CACHE" ~/.cache/nixpkgs-review/pr-${{ inputs.pr }}/results/*
114
+ ($realpath -qe ~/.cache/nixpkgs-review/pr-${{ inputs.pr }}/results/* || true) > paths
115
+ $attic push --stdin "$ATTIC_CACHE" < paths
114
116
info=$(curl -f -H "Authorization: Bearer ${ATTIC_TOKEN}" "${ATTIC_SERVER}_api/v1/cache-config/${ATTIC_CACHE}")
115
117
substituter_endpoint=$(jq -r .substituter_endpoint <<< "$info")
116
118
public_key=$(jq -r .public_key <<< "$info")
@@ -122,9 +124,9 @@ jobs:
122
124
echo " $public_key" >> fetch_cmd
123
125
echo -n " '" >> fetch_cmd
124
126
ok=0
125
- for p in ~/.cache/nixpkgs-review/pr-${{ inputs.pr }}/results/* ; do
127
+ for p in $(cat paths) ; do
126
128
echo -e " \\" >> fetch_cmd
127
- echo -n " $(realpath $p) " >> fetch_cmd
129
+ echo -n " $p " >> fetch_cmd
128
130
ok=1
129
131
done
130
132
[[ "$is_public" = "true" ]] && [[ $ok = 1 ]] || rm fetch_cmd
You can’t perform that action at this time.
0 commit comments