mirror of
https://github.com/yanhao98/composite-actions.git
synced 2025-07-12 22:30:48 +08:00
在工作流中添加显示缓存命中状态的步骤
This commit is contained in:
@ -205,7 +205,11 @@ runs:
|
|||||||
# --frozen-lockfile
|
# --frozen-lockfile
|
||||||
# ERR_PNPM_NO_LOCKFILE Cannot install with "frozen-lockfile" because pnpm-lock.yaml is absent
|
# ERR_PNPM_NO_LOCKFILE Cannot install with "frozen-lockfile" because pnpm-lock.yaml is absent
|
||||||
pnpm store prune
|
pnpm store prune
|
||||||
echo "cache-hit: ${{ steps.cache-pnpm-restore.outputs.cache-hit }}"
|
|
||||||
|
- name: 📊 显示缓存命中状态
|
||||||
|
run: |
|
||||||
|
echo "cache-hit: ${{ steps.cache-pnpm-restore.outputs.cache-hit }}"
|
||||||
|
shell: bash
|
||||||
|
|
||||||
- id: cache-pnpm-save
|
- id: cache-pnpm-save
|
||||||
if: always() && steps.cache-pnpm-restore.outputs.cache-hit == 'false'
|
if: always() && steps.cache-pnpm-restore.outputs.cache-hit == 'false'
|
||||||
|
Reference in New Issue
Block a user