You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 8f17915
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .github/actions/setup-ffmpeg/action.yml
+31-4Lines changed: 31 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -23,7 +23,7 @@ runs:
23
23
local binary_name="${2:-FFmpeg}"
24
24
local output_file="$(echo "$binary_name" | tr '[:upper:]' '[:lower:]').zip"
25
25
26
-
if curl -sS -f -L --retry 3 --retry-delay 5 "$url" -o "$output_file"; then
26
+
if curl -sS -f -L --retry 3 --retry-delay 8 --retry-all-errors "$url" -o "$output_file"; then
27
27
echo "Downloaded $binary_name from $url"
28
28
unzip -q "$output_file"
29
29
rm -f "$output_file"
@@ -33,6 +33,13 @@ runs:
33
33
fi
34
34
}
35
35
36
+
is_binary_available() {
37
+
local url="$1"
38
+
local status=$(curl -sS -o /dev/null -L -A "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.0.0 Safari/537.36" \
0 commit comments