build(ci): cache key hash.
Some checks failed
🚀 Build and deploy by ftp / 🎉 Deploy (push) Failing after 43s
Some checks failed
🚀 Build and deploy by ftp / 🎉 Deploy (push) Failing after 43s
This commit is contained in:
parent
dbb35eb462
commit
1e7cb5c942
13
.github/workflows/build-and-deploy-by-ftp.yaml
vendored
13
.github/workflows/build-and-deploy-by-ftp.yaml
vendored
@ -31,11 +31,22 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
|
echo "STORE_PATH=$(pnpm store path)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
|
- uses: actions/setup-go@v3
|
||||||
|
with:
|
||||||
|
go-version: '1.20'
|
||||||
|
|
||||||
|
- uses: actions/go-hashfiles@v0.0.1
|
||||||
|
id: get-hash
|
||||||
|
with:
|
||||||
|
patterns: |-
|
||||||
|
go.sum
|
||||||
|
**/pnpm-lock.yaml
|
||||||
|
|
||||||
- uses: https://github.com/actions/cache@v3
|
- uses: https://github.com/actions/cache@v3
|
||||||
name: Setup pnpm cache
|
name: Setup pnpm cache
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
|
path: ${{ steps.pnpm-cache.outputs.STORE_PATH }}
|
||||||
key: test_xxxxx
|
key: ${{ runner.os }}-pnpm-store-${{ steps.get-hash.outputs.hash }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
${{ runner.os }}-pnpm-store-
|
${{ runner.os }}-pnpm-store-
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user