fix: cache hit bug

This commit is contained in:
seepine 2024-04-24 00:40:02 +08:00
parent a5eceae314
commit fbfd35d066

View File

@ -77,6 +77,7 @@ runs:
- uses: actions/cache@v3
name: Setup pnpm node_modules cache
id: pnpm-modules-cache
with:
path: node_modules
key: ${{ runner.os }}-pnpm-node_modules-store-cache-${{ steps.cache-rotation.outputs.YEAR_MONTH }}-${{ steps.get-hash.outputs.hash }}
@ -91,7 +92,7 @@ runs:
# run: pnpm prune store
- name: Install dependencies
if: ${{ steps.pnpm-cache.outputs.cache-hit != 'true' && inputs.run_install == 'true' }}
if: ${{ inputs.run_install == 'true' }}
shell: bash
working-directory: ${{ inputs.cwd }}
run: ${{ inputs.install_cmd }}