From a1c37e14f1bbb6ede4757635a1d36fedd1abe88e Mon Sep 17 00:00:00 2001 From: Kirill Nesmeyanov Date: Fri, 23 Jan 2026 19:58:31 +0300 Subject: [PATCH] feat(php): Add working directory support in composer's cache expressions --- .github/actions/php/prepare/action.yaml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/actions/php/prepare/action.yaml b/.github/actions/php/prepare/action.yaml index 40fb37af..2e1600fd 100644 --- a/.github/actions/php/prepare/action.yaml +++ b/.github/actions/php/prepare/action.yaml @@ -34,13 +34,14 @@ runs: shell: bash id: composer-cache run: | + cd ${{ inputs.work-directory }} echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT - name: Restore Composer Cache uses: actions/cache@v5 with: path: ${{ steps.composer-cache.outputs.dir }} - key: core-v2-composer-${{ hashFiles('composer.lock') }} + key: core-v2-composer-${{ hashFiles(format('{0}/composer.lock', inputs.work-directory)) }} restore-keys: | ${{ runner.os }}-core-v2-composer-