Skip to content

Commit

Permalink
CI: Fix FFmpeg build GitHub action cache save condition
Browse files Browse the repository at this point in the history
  • Loading branch information
PatTheMav committed Jan 11, 2024
1 parent 85f0d4e commit 4bf46bb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/actions/build-ffmpeg/action.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ runs:
./Build-Dependencies.ps1 @BuildArgs
- name: Save FFmpeg to Cache
if: github.event_name == 'push'
if: github.event_name == 'schedule' || (github.event_name == 'push' && steps.ffmpeg-cache.outputs.cache-hit != 'true')
uses: actions/cache/save@v3
with:
path: |
Expand All @@ -127,7 +127,7 @@ runs:
key: ${{ inputs.target }}-ffmpeg-${{ inputs.type }}-${{ inputs.config }}-${{ steps.env-setup.outputs.hash }}

- name: Save FFmpeg Dependencies to Cache
if: github.event_name == 'push'
if: github.event_name == 'schedule' || (github.event_name == 'push' && steps.ffmpeg-deps-cache.outputs.cache-hit != 'true')
uses: actions/cache/save@v3
with:
path: |
Expand Down

0 comments on commit 4bf46bb

Please sign in to comment.