Skip to content

Commit bd668a8

Browse files
committed
Configure retries for curl operations
1 parent 8ca771a commit bd668a8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

.github/actions/setup-ffmpeg/action.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,17 +28,17 @@ runs:
2828
2929
elif [[ "${{ runner.os }}" == "macOS" ]]; then
3030
FF_VERSION=$(echo "$FF_VERSION" | awk -F. '{print $1 $2}')
31-
curl -L "https://www.osxexperts.net/ffmpeg${FF_VERSION}arm.zip" -o ffmpeg.zip
31+
curl -L --retry 3 --retry-delay 5 "https://www.osxexperts.net/ffmpeg${FF_VERSION}arm.zip" -o ffmpeg.zip
3232
unzip -q ffmpeg.zip
3333
mv ffmpeg "$INSTALL_DIR/ffmpeg"
34-
curl -L "https://www.osxexperts.net/ffprobe${FF_VERSION}arm.zip" -o ffprobe.zip
34+
curl -L --retry 3 --retry-delay 5 "https://www.osxexperts.net/ffprobe${FF_VERSION}arm.zip" -o ffprobe.zip
3535
unzip -q ffprobe.zip
3636
mv ffprobe "$INSTALL_DIR/ffprobe"
3737
chmod +x "$INSTALL_DIR/"*
3838
rm -f ffmpeg.zip ffprobe.zip
3939
4040
elif [[ "${{ runner.os }}" == "Windows" ]]; then
41-
curl -L "https://www.gyan.dev/ffmpeg/builds/packages/ffmpeg-$FF_VERSION-essentials_build.zip" -o ffmpeg.zip
41+
curl -L --retry 3 --retry-delay 5 "https://www.gyan.dev/ffmpeg/builds/packages/ffmpeg-$FF_VERSION-essentials_build.zip" -o ffmpeg.zip
4242
unzip -q ffmpeg.zip
4343
find . -type f \( -name ffmpeg.exe -o -name ffprobe.exe \) -exec mv {} "$INSTALL_DIR/" \;
4444
rm -f ffmpeg.zip

0 commit comments

Comments
 (0)