Skip to content

Commit cef53be

Browse files
committed
Fix vkd3d-proton release archive handling
1 parent 8b04424 commit cef53be

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

.github/workflows/pull-components.yml

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -121,10 +121,12 @@ jobs:
121121
if: env.UPDATED == 'true'
122122
working-directory: "bottle-components-repository"
123123
run: |
124-
release_archive=${{ fromJSON(steps.check-release.outputs.asset).url }}
125-
if [[ $release_archive == *".tar.zst" ]]; then
126-
tar --use-compress-program=unzstd -xvf $release_archive
127-
tar -C "${{ env.NAME }}" -zcvf "${{ env.NAME }}.tar.gz" $(ls ${{ env.NAME }})
124+
release_archive_url=${{ fromJSON(steps.check-release.outputs.asset).url }}
125+
release_archive_name=${{ fromJSON(steps.check-release.outputs.asset).name }}
126+
if [[ $release_archive_name == *".tar.zst" ]]; then
127+
curl -fsSLO "$release_archive_url"
128+
tar --use-compress-program=unzstd -xvf $release_archive_name
129+
tar -zcvf "${{ env.NAME }}.tar.gz" "${{ env.NAME }}"
128130
echo "UPLOAD_FILE=$(pwd)/${{ env.NAME }}.tar.gz" >> $GITHUB_ENV
129131
fi
130132

0 commit comments

Comments
 (0)