From fbfd35d066815c344cd49a7f206535dac20765f7 Mon Sep 17 00:00:00 2001 From: seepine Date: Wed, 24 Apr 2024 00:40:02 +0800 Subject: [PATCH] fix: cache hit bug --- action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 1067a13..f866392 100644 --- a/action.yml +++ b/action.yml @@ -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 }}