From 5d55cb8ee4ff3e5ee89de39dbf5bd82dbb4e9dfa Mon Sep 17 00:00:00 2001 From: DARKZOUL5 Date: Sat, 7 Mar 2026 20:37:01 +0200 Subject: [PATCH] Add retries to curl commands for downloading dependencies in release workflow --- .github/workflows/release.yml | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 64aeced..a893cf6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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"