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
19 - name: Build19 - name: Build
20 run: make -j$(nproc)20 run: make -j$(nproc)
21 - name: Restore Cached Fate-Suite21 - name: Restore Cached Fate-Suite
22 id: cache
22 uses: actions/cache/restore@v423 uses: actions/cache/restore@v4
23 with:24 with:
24 path: fate-suite25 path: fate-suite
@@ -32,6 +33,7 @@ jobs: · 7 unmodified lines
32 echo "hash=$(find fate-suite -type f | sha256sum | cut -d' ' -f1)" >> $FORGEJO_OUTPUT33 echo "hash=$(find fate-suite -type f | sha256sum | cut -d' ' -f1)" >> $FORGEJO_OUTPUT
33 - name: Cache Fate-Suite34 - name: Cache Fate-Suite
34 uses: actions/cache/save@v435 uses: actions/cache/save@v4
36 if: ${{ format('fate-suite-{0}', steps.fate.outputs.hash) != steps.cache.outputs.cache-matched-key }}
35 with:37 with:
36 path: fate-suite38 path: fate-suite
37 key: fate-suite-${{ steps.fate.outputs.hash }}39 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