aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Rothenpieler <timo@rothenpieler.org>2025-07-26 20:33:35 +0200
committerTimo Rothenpieler <timo@rothenpieler.org>2025-07-31 22:57:35 +0000
commit2d64d1129fa11dd11614328941f669b0d2c50dbf (patch)
tree5be808115daa09c600839e6a2ae1da6e1c5d3713
parent901e23675beef81cc25a4bf115c3650bd740fb4e (diff)
downloadffmpeg-2d64d1129fa11dd11614328941f669b0d2c50dbf.tar.gz
forgejo/workflows: only upload cache if key changed
-rw-r--r--.forgejo/workflows/test.yml2
1 files changed, 2 insertions, 0 deletions
diff --git a/.forgejo/workflows/test.yml b/.forgejo/workflows/test.yml
index cb376cf8de..8b870ba580 100644
--- a/.forgejo/workflows/test.yml
+++ b/.forgejo/workflows/test.yml
@@ -19,6 +19,7 @@ jobs:
- name: Build
run: make -j$(nproc)
- name: Restore Cached Fate-Suite
+ id: cache
uses: actions/cache/restore@v4
with:
path: fate-suite
@@ -32,6 +33,7 @@ jobs:
echo "hash=$(find fate-suite -type f | sha256sum | cut -d' ' -f1)" >> $FORGEJO_OUTPUT
- name: Cache Fate-Suite
uses: actions/cache/save@v4
+ if: ${{ format('fate-suite-{0}', steps.fate.outputs.hash) != steps.cache.outputs.cache-matched-key }}
with:
path: fate-suite
key: fate-suite-${{ steps.fate.outputs.hash }}