mirror of
https://github.com/darkzoul5/YoutubePlaylistSync.git
synced 2026-11-05 07:55:12 +02:00
Add retries to curl commands for downloading dependencies in release workflow
This commit is contained in:
1 parent
4a9b6b5850
commit
5d55cb8ee4
1 file changed
+5
-5
@@ -39,19 +39,19 @@ jobs:
|
|||||||
cp "$GITHUB_WORKSPACE/yt-playlist-main.py" "$GITHUB_WORKSPACE/dist/windows/"
|
cp "$GITHUB_WORKSPACE/yt-playlist-main.py" "$GITHUB_WORKSPACE/dist/windows/"
|
||||||
|
|
||||||
# yt-dlp
|
# 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" \
|
-o "$GITHUB_WORKSPACE/dist/windows/bin/yt-dlp.exe" \
|
||||||
https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.exe
|
https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp.exe
|
||||||
|
|
||||||
# FFmpeg Windows static
|
# 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" \
|
-o "$GITHUB_WORKSPACE/dist/windows/ffmpeg.zip" \
|
||||||
https://www.gyan.dev/ffmpeg/builds/ffmpeg-release-essentials.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"
|
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"
|
mv $(find "$GITHUB_WORKSPACE/dist/windows/ffmpeg_temp" -name ffmpeg.exe | head -n 1) "$GITHUB_WORKSPACE/dist/windows/bin/ffmpeg.exe"
|
||||||
|
|
||||||
# aria2c Windows static
|
# 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" \
|
-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
|
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/"
|
unzip "$GITHUB_WORKSPACE/dist/windows/aria2c.zip" -d "$GITHUB_WORKSPACE/dist/windows/"
|
||||||
@@ -103,14 +103,14 @@ jobs:
|
|||||||
|
|
||||||
- name: Download yt-dlp
|
- name: Download yt-dlp
|
||||||
run: |
|
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" \
|
-o "$GITHUB_WORKSPACE/dist/linux/bin/yt-dlp" \
|
||||||
https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux
|
https://github.com/yt-dlp/yt-dlp/releases/latest/download/yt-dlp_linux
|
||||||
chmod +x "$GITHUB_WORKSPACE/dist/linux/bin/yt-dlp"
|
chmod +x "$GITHUB_WORKSPACE/dist/linux/bin/yt-dlp"
|
||||||
|
|
||||||
- name: Download FFmpeg static
|
- name: Download FFmpeg static
|
||||||
run: |
|
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" \
|
-o "$GITHUB_WORKSPACE/dist/linux/ffmpeg.tar.xz" \
|
||||||
https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz
|
https://johnvansickle.com/ffmpeg/releases/ffmpeg-release-amd64-static.tar.xz
|
||||||
mkdir -p "$GITHUB_WORKSPACE/dist/linux/ffmpeg_temp"
|
mkdir -p "$GITHUB_WORKSPACE/dist/linux/ffmpeg_temp"
|
||||||
|
|||||||
Reference in new issue
Block a user