Skip to content

Commit

Permalink
ci-release: use remote file name
Browse files Browse the repository at this point in the history
  • Loading branch information
myfreeer authored Mar 3, 2024
1 parent 451639f commit ed6baa3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/ci-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,11 +57,11 @@ jobs:
if [ -n "$redirect_url" ]; then
echo "Redirect URL found: $redirect_url"
# Make a new request to the redirect URL without the Authorization header
curl -L "$redirect_url" -O
curl -L "$redirect_url" --remote-header-name -O
else
echo "No redirect URL found, downloading directly."
# If no redirect was found, download the file directly with the Authorization header
curl -L --header "$auth_header" "$url" -O
curl -L --header "$auth_header" "$url" --remote-header-name -O
fi
done
mkdir -p ../release
Expand Down

0 comments on commit ed6baa3

Please sign in to comment.