mirror of
https://github.com/yanhao98/composite-actions.git
synced 2025-07-13 06:40:49 +08:00
更新缓存恢复键,以包含工作区路径,增强缓存命中逻辑
This commit is contained in:
@ -180,8 +180,9 @@ runs:
|
|||||||
uses: actions/cache/restore@v4 # https://github.com/actions/cache/blob/main/restore/action.yml
|
uses: actions/cache/restore@v4 # https://github.com/actions/cache/blob/main/restore/action.yml
|
||||||
with:
|
with:
|
||||||
path: ${{ steps.pnpm-store-dir.outputs.pnpmStoreDir }}
|
path: ${{ steps.pnpm-store-dir.outputs.pnpmStoreDir }}
|
||||||
key: ${{ runner.os }}-pnpm-store-${{ hashFiles('**/pnpm-lock.yaml') }}
|
key: ${{ runner.os }}-pnpm-store-${{ github.workspace }}-${{ hashFiles('**/pnpm-lock.yaml') }}
|
||||||
restore-keys: |
|
restore-keys: |
|
||||||
|
${{ runner.os }}-pnpm-store-${{ github.workspace }}-
|
||||||
${{ runner.os }}-pnpm-store-
|
${{ runner.os }}-pnpm-store-
|
||||||
|
|
||||||
# https://github.com/pnpm/pnpm/issues/7192#issuecomment-2353298966
|
# https://github.com/pnpm/pnpm/issues/7192#issuecomment-2353298966
|
||||||
|
Reference in New Issue
Block a user