Skip to content

Commit dd3bc4c

Browse files
committed
build: fix cache key
1 parent 825f433 commit dd3bc4c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/build.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
uses: actions/cache@v4
3333
with:
3434
path: ./cli/dist
35-
key: ${{ runner.os }}-cli-${{ hashFiles('cli/[!dist]**', 'cli/**/[!dist]**', 'go.mod', 'go.sum') }}
35+
key: cli-${{ hashFiles('cli/[!dist]**', 'cli/**/[!dist]**', 'go.mod', 'go.sum') }}
3636

3737
build_cli:
3838
needs: check_cli_cache
@@ -70,7 +70,7 @@ jobs:
7070
uses: actions/cache/save@v4
7171
with:
7272
path: ./cli/dist
73-
key: ${{ runner.os }}-cli-${{ steps.cachekey.outputs.cachekey }}
73+
key: cli-${{ steps.cachekey.outputs.cachekey }}
7474

7575
- name: Upload Artifact
7676
uses: actions/upload-artifact@v4
@@ -90,7 +90,7 @@ jobs:
9090
uses: actions/cache/restore@v4
9191
with:
9292
path: ./cli/dist
93-
key: ${{ runner.os }}-cli-${{ hashFiles('cli/[!dist]**', 'cli/**/[!dist]**', 'go.mod', 'go.sum') }}
93+
key: cli-${{ hashFiles('cli/[!dist]**', 'cli/**/[!dist]**', 'go.mod', 'go.sum') }}
9494
fail-on-cache-miss: true
9595

9696
- name: Setup keychain

0 commit comments

Comments
 (0)