Update action/cache from v2 to v4

cache v2 已不被支援。现更新至v4。看起来不需要更改其他东西。
This commit is contained in:
SodaWithoutSparkles 2025-02-05 10:51:04 +08:00 committed by GitHub
parent e0628a7666
commit ae79ed482c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -24,7 +24,7 @@ jobs:
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "dir=$(yarn cache dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v2
- uses: actions/cache@v4
id: yarn-cache
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}