Skip to content

Commit 2156ade

Browse files
authored
Merge pull request #27 from go-tstr/restore-key
Use restore key
2 parents 780bc69 + 3b30011 commit 2156ade

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/go.yaml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,8 @@ jobs:
2626

2727
- uses: actions/cache/restore@v4
2828
with:
29-
key: ${{ runner.os }}-go-cache
29+
key: ${{ runner.os }}-go-cache-${{ hashFiles('**/go.sum') }}
30+
restore-keys: ${{ runner.os }}-go-
3031
path: |
3132
~/.cache/golangci-lint
3233
~/.cache/go-build
@@ -62,7 +63,7 @@ jobs:
6263
- uses: actions/cache/save@v4
6364
if: ${{ env.IS_MAIN }}
6465
with:
65-
key: ${{ runner.os }}-go-cache
66+
key: ${{ runner.os }}-go-cache-${{ hashFiles('**/go.sum') }}
6667
path: |
6768
~/.cache/golangci-lint
6869
~/.cache/go-build

0 commit comments

Comments
 (0)