From cc53eb2abaadbb5546e33700080d5c5e13523260 Mon Sep 17 00:00:00 2001 From: Matthew Baggett Date: Sat, 18 May 2024 22:07:13 +0200 Subject: [PATCH] Bad composer lock hash path --- action.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/action.yml b/action.yml index 5cf1679..a7514b3 100644 --- a/action.yml +++ b/action.yml @@ -45,11 +45,12 @@ runs: tools: ${{ inputs.php_tools }} - id: composer-cache-find name: "Find Composer Cache" + if: ${{ steps.read-php-version.outputs.has_composer }} shell: bash run: | { echo "dir=$(composer config cache-files-dir)" - echo "key=${{ runner.os }}-${{ inputs.working_directory }}-composer-${{ hashFiles('${{ inputs.working_directory }}/composer.lock') }}" + echo "key=${{ runner.os }}-${{ inputs.working_directory }}-composer-${{ hashFiles('**/composer.lock') }}" echo "restore-key=${{ runner.os }}-${{ inputs.working_directory }}-composer-" } >> $GITHUB_OUTPUT - id: composer-cache-restore