Skip to content

Commit

Permalink
Merge pull request #128 from C2QA/bugfix/prevent-setup-ffmeg-fetch-error
Browse files Browse the repository at this point in the history
add custom composite action to retry setup-ffmpeg if fetch fails
  • Loading branch information
tjstavenger-pnnl authored Oct 25, 2024
2 parents 851030f + 469f6c6 commit 1dd1eba
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 2 deletions.
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/setup-ffmpeg@v3.1
- name: Setup ffmpeg (attempt 2)
if: ${{ steps.attempt1.outcome == 'failure' }}
id: attempt2
continue-on-error: true
uses: FedericoCarboni/setup-ffmpeg@v3.1
- name: Setup ffmpeg (attempt 3)
if: ${{ steps.attempt2.outcome == 'failure' }}
id: attempt3
continue-on-error: true
uses: FedericoCarboni/setup-ffmpeg@v3.1
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

0 comments on commit 1dd1eba

Please sign in to comment.