History

forgejo/workflows: only upload cache if key changed

Timo Rothenpieler committed 1 year ago

Commit 2d64d111 parent 901e2361 file · +2 −0Browse files

Unified · Split

.forgejo/workflows/test.yml+2−0
@@ -19,6 +19,7 @@ jobs: · 18 unmodified lines
1919 - name: Build
2020 run: make -j$(nproc)
2121 - name: Restore Cached Fate-Suite
22+ id: cache
2223 uses: actions/cache/restore@v4
2324 with:
2425 path: fate-suite
@@ -32,6 +33,7 @@ jobs: · 7 unmodified lines
3233 echo "hash=$(find fate-suite -type f | sha256sum | cut -d' ' -f1)" >> $FORGEJO_OUTPUT
3334 - name: Cache Fate-Suite
3435 uses: actions/cache/save@v4
36+ if: ${{ format('fate-suite-{0}', steps.fate.outputs.hash) != steps.cache.outputs.cache-matched-key }}
3537 with:
3638 path: fate-suite
3739 key: fate-suite-${{ steps.fate.outputs.hash }}

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t