Skip to content

Commit 8f51ed6

Browse files
committed
Replace github action compose-cache outputs step
1 parent 35d056f commit 8f51ed6

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/test.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,13 +24,15 @@ jobs:
2424
run: echo "::add-matcher::${{ runner.tool_cache }}/phpunit.json"
2525

2626
- name: Get composer cache directory
27+
uses: mathiasvr/command-output@v2.0.0
2728
id: composer-cache
28-
run: echo "dir=$(composer config cache-files-dir)" >> $env:GITHUB_OUTPUT
29+
with:
30+
run: composer config cache-files-dir
2931

3032
- name: Cache composer dependencies
3133
uses: actions/cache@v4
3234
with:
33-
path: ${{ steps.composer-cache.outputs.dir }}
35+
path: ${{ steps.composer-cache.outputs.stdout }}
3436
key: ${{ runner.os }}-${{ matrix.php-versions }}-composer-${{ hashFiles('**/composer.json') }}
3537
restore-keys: ${{ runner.os }}-${{ matrix.php-versions }}-composer-
3638

0 commit comments

Comments
 (0)