Skip to content

Commit 0e48690

Browse files
authored
Update download-cache.yml
1 parent 1ec4e67 commit 0e48690

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/download-cache.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -79,9 +79,11 @@ jobs:
7979
cp -- "$src_file" "$new_name"
8080
echo "Renamed: $src_file -> $new_name"
8181
}
82-
SOURCE_TYPE=$(cat downloads/.lock.json | jq -M -c -r '."${{ matrix.source }}".source_type'
82+
SOURCE_TYPE=$(cat downloads/.lock.json | jq -M -c -r '."${{ matrix.source }}".source_type')
8383
if [ "$SOURCE_TYPE" = "archive" ]; then
84+
cd downloads
8485
rename_file $(cat downloads/.lock.json | jq -M -c -r '."${{ matrix.source }}".filename') ${{ matrix.source }}-spc-mirror
86+
cd ..
8587
else
8688
cd downloads
8789
tar -cJvf ${{ matrix.source }}-spc-mirror.txz $(cat downloads/.lock.json | jq -M -c -r '."${{ matrix.source }}".dirname')

0 commit comments

Comments
 (0)