Skip to content

Commit 965107f

Browse files
committed
Add curl parameter to fail on http errors
1 parent e73dfad commit 965107f

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,12 +28,12 @@ runs:
2828
2929
elif [[ "${{ runner.os }}" == "macOS" ]]; then
3030
FF_VERSION=$(echo "$FF_VERSION" | awk -F. '{print $1 $2}')
31-
curl -sS -L --retry 3 --retry-delay 5 \
31+
curl -sS -f -L --retry 3 --retry-delay 5 \
3232
"https://www.osxexperts.net/ffmpeg${FF_VERSION}arm.zip" \
3333
-o ffmpeg.zip -w "Downloaded FFmpeg from %{url_effective}\n"
3434
unzip -q ffmpeg.zip
3535
mv ffmpeg "$INSTALL_DIR/ffmpeg"
36-
curl -sS -L --retry 3 --retry-delay 5 \
36+
curl -sS -f -L --retry 3 --retry-delay 5 \
3737
"https://www.osxexperts.net/ffprobe${FF_VERSION}arm.zip" \
3838
-o ffprobe.zip -w "Downloaded FFprobe from %{url_effective}"
3939
unzip -q ffprobe.zip
@@ -42,7 +42,7 @@ runs:
4242
rm -f ffmpeg.zip ffprobe.zip
4343
4444
elif [[ "${{ runner.os }}" == "Windows" ]]; then
45-
curl -sS -L --retry 3 --retry-delay 5 \
45+
curl -sS -f -L --retry 3 --retry-delay 5 \
4646
"https://www.gyan.dev/ffmpeg/builds/packages/ffmpeg-$FF_VERSION-essentials_build.zip" \
4747
-o ffmpeg.zip -w "Downloaded FFmpeg and FFprobe from %{url_effective}"
4848
unzip -q ffmpeg.zip

0 commit comments

Comments
 (0)