修复hashFiles

This commit is contained in:
2026-05-02 23:27:16 +08:00
parent 3609dd46e7
commit 117fe0d836

View File

@@ -39,12 +39,18 @@ jobs:
cd $(go env GOROOT)
for p in $GITHUB_WORKSPACE/.github/patch/*.patch; do patch --verbose -p 1 < "$p"; done
- uses: actions/go-hashfiles@v0.0.1
id: get-hash
with:
patterns: |-
**/go.sum
- uses: actions/cache@v5
with:
path: |
~/.cache/go-build
~/go/pkg/mod
key: ${{ runner.os }}-go-${{ hashFiles('**/go.sum') }}
key: ${{ runner.os }}-go-${{ steps.get-hash.outputs.hash }}
restore-keys: |
${{ runner.os }}-go-