Skip to content

Commit ce0a3a1

Browse files
localheinzsebastianbergmann
authored andcommitted
Fix: Do not use deprecated set-env
1 parent 8f4991a commit ce0a3a1

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

.github/workflows/ci.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,7 @@ jobs:
126126

127127
- name: Override PHP ini values for JIT compiler
128128
if: matrix.compiler == 'jit'
129-
run: echo "::set-env name=PHP_INI_VALUES::assert.exception=1, zend.assertions=1, opcache.enable=1, opcache.enable_cli=1, opcache.optimization_level=-1, opcache.jit=1255, opcache.jit_buffer_size=32M"
129+
run: echo "PHP_INI_VALUES::assert.exception=1, zend.assertions=1, opcache.enable=1, opcache.enable_cli=1, opcache.optimization_level=-1, opcache.jit=1255, opcache.jit_buffer_size=32M" >> $GITHUB_ENV
130130

131131
- name: Install PHP with extensions
132132
uses: shivammathur/setup-php@v2
@@ -138,11 +138,11 @@ jobs:
138138

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

143143
- name: Determine composer cache directory on Windows
144144
if: matrix.os == 'windows-latest'
145-
run: ECHO "::set-env name=COMPOSER_CACHE_DIR::~\AppData\Local\Composer"
145+
run: ECHO "COMPOSER_CACHE_DIR=~\AppData\Local\Composer" | Out-File -FilePath $env:GITHUB_ENV -Encoding utf8 -Append
146146

147147
- name: Cache dependencies installed with composer
148148
uses: actions/cache@v2

0 commit comments

Comments
 (0)