mirror of
https://github.com/yanhao98/composite-actions.git
synced 2026-02-04 18:00:34 +08:00
chore(deps): update actions/cache action to v5
This commit is contained in:
@@ -103,7 +103,7 @@ jobs:
|
|||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- name: 🗄️ 缓存Docker层
|
- name: 🗄️ 缓存Docker层
|
||||||
uses: actions/cache@v4
|
uses: actions/cache@v5
|
||||||
with:
|
with:
|
||||||
path: /tmp/.buildx-cache
|
path: /tmp/.buildx-cache
|
||||||
key: ${{ runner.os }}-buildx-IMAGE_NAME-${{ github.sha }}
|
key: ${{ runner.os }}-buildx-IMAGE_NAME-${{ github.sha }}
|
||||||
|
|||||||
@@ -208,7 +208,7 @@ runs:
|
|||||||
echo "pnpmStoreDir=$(pnpm store path)" >> $GITHUB_OUTPUT
|
echo "pnpmStoreDir=$(pnpm store path)" >> $GITHUB_OUTPUT
|
||||||
|
|
||||||
- id: cache-pnpm-restore
|
- id: cache-pnpm-restore
|
||||||
uses: actions/cache/restore@v4 # https://github.com/actions/cache/blob/main/restore/action.yml
|
uses: actions/cache/restore@v5 # https://github.com/actions/cache/blob/main/restore/action.yml
|
||||||
if: steps.prepare.outputs.pnpmLockExists == 'true'
|
if: steps.prepare.outputs.pnpmLockExists == 'true'
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.pnpm-store-dir.outputs.pnpmStoreDir }}
|
path: ${{ steps.pnpm-store-dir.outputs.pnpmStoreDir }}
|
||||||
@@ -252,7 +252,7 @@ runs:
|
|||||||
|
|
||||||
- id: cache-pnpm-save
|
- id: cache-pnpm-save
|
||||||
if: always() && steps.prepare.outputs.pnpmLockExists == 'true' && steps.cache-pnpm-restore.outputs.cache-hit != 'true'
|
if: always() && steps.prepare.outputs.pnpmLockExists == 'true' && steps.cache-pnpm-restore.outputs.cache-hit != 'true'
|
||||||
uses: actions/cache/save@v4
|
uses: actions/cache/save@v5
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.pnpm-store-dir.outputs.pnpmStoreDir }}
|
path: ${{ steps.pnpm-store-dir.outputs.pnpmStoreDir }}
|
||||||
key: ${{ steps.cache-pnpm-restore.outputs.cache-primary-key }}
|
key: ${{ steps.cache-pnpm-restore.outputs.cache-primary-key }}
|
||||||
|
|||||||
Reference in New Issue
Block a user