Skip to content

Commit 00cb4e3

Browse files
localheinzsebastianbergmann
authored andcommitted
Fix: Do not use set-env to set COMPOSER_CACHE_DIR environment variable
1 parent c17a172 commit 00cb4e3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/ci.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,11 +129,11 @@ jobs:
129129

130130
- name: Determine composer cache directory on Linux
131131
if: matrix.os == 'ubuntu-latest'
132-
run: echo "::set-env name=COMPOSER_CACHE_DIR::$(./tools/composer config cache-dir)"
132+
run: echo "COMPOSER_CACHE_DIR=$(tools/composer config cache-dir)" >> $GITHUB_ENV
133133

134134
- name: Determine composer cache directory on Windows
135135
if: matrix.os == 'windows-latest'
136-
run: ECHO "::set-env name=COMPOSER_CACHE_DIR::~\AppData\Local\Composer"
136+
run: echo "COMPOSER_CACHE_DIR=~\AppData\Local\Composer" | Out-File -FilePath $env:GITHUB_ENV -Append
137137

138138
- name: Cache dependencies installed with composer
139139
uses: actions/cache@v2

0 commit comments

Comments
 (0)