mirror of
https://github.com/darkzoul5/YoutubePlaylistSync.git
synced 2026-07-03 04:23:59 +03:00
Add retries to curl commands for downloading dependencies in release workflow
This commit is contained in:
@@ -39,19 +39,19 @@ jobs:
|
||||
cp "$GITHUB_WORKSPACE/yt-playlist-main.py" "$GITHUB_WORKSPACE/dist/windows/"
|
||||
|
||||
# yt-dlp
|
||||
curl -fL -H "User-Agent: github-actions" \
|
||||
curl -fL --retry 3 -H "User-Agent: github-actions" \
|
||||
-o "$GITHUB_WORKSPACE/dist/windows/bin/yt-dlp.exe" \
|
||||
https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.exe
|
||||
|
||||
# FFmpeg Windows static
|
||||
curl -fL -H "User-Agent: github-actions" \
|
||||
curl -fL --retry 3 -H "User-Agent: github-actions" \
|
||||
-o "$GITHUB_WORKSPACE/dist/windows/ffmpeg.zip" \
|
||||
https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-essentials.zip
|
||||
unzip -q "$GITHUB_WORKSPACE/dist/windows/ffmpeg.zip" -d "$GITHUB_WORKSPACE/dist/windows/ffmpeg_temp"
|
||||
mv $(find "$GITHUB_WORKSPACE/dist/windows/ffmpeg_temp" -name ffmpeg.exe | head -n 1) "$GITHUB_WORKSPACE/dist/windows/bin/ffmpeg.exe"
|
||||
|
||||
# aria2c Windows static
|
||||
curl -fL -H "User-Agent: github-actions" \
|
||||
curl -fL --retry 3 -H "User-Agent: github-actions" \
|
||||
-o "$GITHUB_WORKSPACE/dist/windows/aria2c.zip" \
|
||||
https://github.com/aria2/aria2/releases/download/release-1.37.0/aria2-1.37.0-win-64bit-build1.zip
|
||||
unzip "$GITHUB_WORKSPACE/dist/windows/aria2c.zip" -d "$GITHUB_WORKSPACE/dist/windows/"
|
||||
@@ -103,14 +103,14 @@ jobs:
|
||||
|
||||
- name: Download yt-dlp
|
||||
run: |
|
||||
curl -fL -H "User-Agent: github-actions" \
|
||||
curl -fL --retry 3 -H "User-Agent: github-actions" \
|
||||
-o "$GITHUB_WORKSPACE/dist/linux/bin/yt-dlp" \
|
||||
https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux
|
||||
chmod +x "$GITHUB_WORKSPACE/dist/linux/bin/yt-dlp"
|
||||
|
||||
- name: Download FFmpeg static
|
||||
run: |
|
||||
curl -fL -H "User-Agent: github-actions" \
|
||||
curl -fL --retry 3 -H "User-Agent: github-actions" \
|
||||
-o "$GITHUB_WORKSPACE/dist/linux/ffmpeg.tar.xz" \
|
||||
https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz
|
||||
mkdir -p "$GITHUB_WORKSPACE/dist/linux/ffmpeg_temp"
|
||||
|
||||
Reference in New Issue
Block a user