mirror of
https://git.ffmpeg.org/ffmpeg.git
synced 2026-01-11 16:45:34 +01:00
forgejo/workflows: include size and mtime in cache hash
In case some file has been updated. Generally fate samples shouldn't be replaced to preserve compatibility with older revisions, but before merge it may happen that files is replaced. Signed-off-by: Kacper Michajłow <kasper93@gmail.com>
This commit is contained in:
@@ -39,7 +39,7 @@ jobs:
|
||||
id: fate
|
||||
run: |
|
||||
make fate-rsync SAMPLES=$PWD/fate-suite
|
||||
echo "hash=$(find fate-suite -type f | sort | sha256sum | cut -d' ' -f1)" >> $FORGEJO_OUTPUT
|
||||
echo "hash=$(find fate-suite -type f -printf "%P %s %T@\n" | sort | 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 }}
|
||||
|
||||
Reference in New Issue
Block a user