Skip to content

Commit

Permalink
feat: update composer cache path in GitHub Actions.
Browse files Browse the repository at this point in the history
This commit updates the path for the composer cache in the PHP workflow,
utilising `composer config cache-files-dir` for dynamic path resolution.
Improves cache handling across different environments.
  • Loading branch information
pl38 committed Apr 16, 2024
1 parent 7337ce3 commit bd23f6f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/php.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ jobs:
uses: actions/cache@v4
id: composer-cache
with:
path: ${{ steps.composer-cache.outputs.dir }}
path: dir::$(composer config cache-files-dir)
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}

-
Expand Down

0 comments on commit bd23f6f

Please sign in to comment.