Skip to content

Commit b401ab9

Browse files
committed
Add specific log when FFmpeg download fails
1 parent 2578bff commit b401ab9

1 file changed

Lines changed: 8 additions & 3 deletions

File tree

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

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,14 @@ runs:
2323
local binary_name="${2:-FFmpeg}"
2424
local output_file="$(echo "$binary_name" | tr '[:upper:]' '[:lower:]').zip"
2525
26-
curl -sS -f -L --retry 3 --retry-delay 5 "$url" -o "$output_file" -w "Downloaded $binary_name from %{url_effective}\n"
27-
unzip -q "$output_file"
28-
rm -f "$output_file"
26+
if curl -sS -f -L --retry 3 --retry-delay 5 "$url" -o "$output_file"; then
27+
echo "Downloaded $binary_name from $url"
28+
unzip -q "$output_file"
29+
rm -f "$output_file"
30+
else
31+
echo "Failed to download $binary_name from $url"
32+
return 1
33+
fi
2934
}
3035
3136
if [[ "${{ runner.os }}" == "Linux" ]]; then

0 commit comments

Comments
 (0)