Skip to content

Commit 89e1121

Browse files
committed
update usage of set-output
1 parent fbefbf8 commit 89e1121

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/php.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -10,25 +10,32 @@ jobs:
1010
name: PHP ${{ matrix.php }}
1111
steps:
1212
- uses: actions/checkout@v4
13+
1314
- name: Install PHP
1415
uses: shivammathur/setup-php@master
1516
with:
1617
php-version: ${{ matrix.php }}
18+
1719
- name: Report PHP version
1820
run: php -v
21+
1922
- name: Validate composer.json and composer.lock
2023
run: composer validate
24+
2125
- name: Get Composer Cache Directory
2226
id: composer-cache
23-
run: echo "::set-output name=dir::$(composer config cache-files-dir)"
27+
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
28+
2429
- name: Cache dependencies
2530
uses: actions/cache@v4
2631
with:
2732
path: ${{ steps.composer-cache.outputs.dir }}
2833
key: ${{ matrix.php }}-composer-${{ hashFiles('**/composer.lock') }}
2934
restore-keys: ${{ matrix.php }}-composer-
35+
3036
- name: Install dependencies
3137
run: composer install --prefer-dist --no-progress --no-suggest
38+
3239
- name: Run test suite
3340
run: vendor/bin/phpunit
3441

0 commit comments

Comments
 (0)