Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add custom composite action to retry setup-ffmpeg if fetch fails #128

Merged
merged 1 commit into from
Oct 25, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions .github/actions/setup-ffmpeg/action.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: 'Setup ffmpeg'
description: 'Setting up ffmpeg with additional retries in case a fetch fails.'
runs:
using: 'composite'
steps:
- name: Setup ffmpeg (attempt 1)
id: attempt1
continue-on-error: true
uses: FedericoCarboni/[email protected]
- name: Setup ffmpeg (attempt 2)
if: ${{ steps.attempt1.outcome == 'failure' }}
id: attempt2
continue-on-error: true
uses: FedericoCarboni/[email protected]
- name: Setup ffmpeg (attempt 3)
if: ${{ steps.attempt2.outcome == 'failure' }}
id: attempt3
continue-on-error: true
uses: FedericoCarboni/[email protected]
4 changes: 2 additions & 2 deletions .github/workflows/jupyter-matrix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ jobs:
with:
python-version: "3.12"

- name: Setup FFmpeg
uses: FedericoCarboni/setup-ffmpeg@v3
- name: Setup ffmpeg (with retries)
uses: ./.github/actions/setup-ffmpeg

- name: Setup TeX Live
uses: teatimeguest/setup-texlive-action@v3
Expand Down
Loading