From 35c9180f793512e2ac312c7cf82c5deb1b5d8000 Mon Sep 17 00:00:00 2001 From: Lauro Fialho Mueller Date: Mon, 20 Nov 2023 16:16:07 +0100 Subject: [PATCH] fix(17-custom-actions): correctly calculate cache key --- .github/actions/composite-cache-deps/action.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/actions/composite-cache-deps/action.yaml b/.github/actions/composite-cache-deps/action.yaml index acf9af5..862666e 100644 --- a/.github/actions/composite-cache-deps/action.yaml +++ b/.github/actions/composite-cache-deps/action.yaml @@ -23,7 +23,7 @@ runs: uses: actions/cache@v3 with: path: ${{ inputs.working-dir }}/node_modules - key: node-modules-${{ hashFiles('${{ inputs.working-dir }}/package-lock.json') }} + key: node-modules-${{ hashFiles(format('{0}/{1}', inputs.working-dir, 'package-lock.json')) }} - name: Install dependencies if: steps.cache.outputs.cache-hit != 'true' run: npm ci