Skip to content

Commit e33b4e2

Browse files
authored
Remove deprecated 'set-env' command from GHA workflows (#14604)
* Use download-artifact v2 * Use newer env variable setting * Testing * Revert "Testing" This reverts commit 52ef487. * Update release workflow
1 parent f752706 commit e33b4e2

File tree

2 files changed

+13
-13
lines changed

2 files changed

+13
-13
lines changed

.github/workflows/insiders.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -228,8 +228,8 @@ jobs:
228228
229229
- name: Set CI_PYTHON_PATH and CI_DISABLE_AUTO_SELECTION
230230
run: |
231-
echo "::set-env name=CI_PYTHON_PATH::python"
232-
echo "::set-env name=CI_DISABLE_AUTO_SELECTION::1"
231+
echo "CI_PYTHON_PATH=python" >> $GITHUB_ENV
232+
echo "CI_DISABLE_AUTO_SELECTION=1" >> $GITHUB_ENV
233233
shell: bash
234234
if: matrix.test-suite != 'ts-unit'
235235

@@ -362,8 +362,8 @@ jobs:
362362

363363
- name: Set CI_PYTHON_PATH and CI_DISABLE_AUTO_SELECTION
364364
run: |
365-
echo "::set-env name=CI_PYTHON_PATH::python"
366-
echo "::set-env name=CI_DISABLE_AUTO_SELECTION::1"
365+
echo "CI_PYTHON_PATH=python" >> $GITHUB_ENV
366+
echo "CI_DISABLE_AUTO_SELECTION=1" >> $GITHUB_ENV
367367
shell: bash
368368

369369
- name: Run smoke tests
@@ -428,8 +428,8 @@ jobs:
428428

429429
- name: Set CI_PYTHON_PATH and CI_DISABLE_AUTO_SELECTION
430430
run: |
431-
echo "::set-env name=CI_PYTHON_PATH::python"
432-
echo "::set-env name=CI_DISABLE_AUTO_SELECTION::1"
431+
echo "CI_PYTHON_PATH=python" >> $GITHUB_ENV
432+
echo "CI_DISABLE_AUTO_SELECTION=1" >> $GITHUB_ENV
433433
shell: bash
434434

435435
- name: Run insider tests
@@ -460,7 +460,7 @@ jobs:
460460
# The name pattern is ${{runner.os}}-${{env.COVERAGE_REPORTS}}, and possible values for runner.os are `Linux`, `Windows`, or `macOS`.
461461
# See https://help.github.com/en/actions/reference/contexts-and-expression-syntax-for-github-actions#runner-context
462462
- name: Download Ubuntu test coverage artifacts
463-
uses: actions/download-artifact@v1
463+
uses: actions/download-artifact@v2
464464
with:
465465
name: Linux-${{env.COVERAGE_REPORTS}}
466466

.github/workflows/release.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -215,8 +215,8 @@ jobs:
215215
216216
- name: Set CI_PYTHON_PATH and CI_DISABLE_AUTO_SELECTION
217217
run: |
218-
echo "::set-env name=CI_PYTHON_PATH::python"
219-
echo "::set-env name=CI_DISABLE_AUTO_SELECTION::1"
218+
echo "CI_PYTHON_PATH=python" >> $GITHUB_ENV
219+
echo "CI_DISABLE_AUTO_SELECTION=1" >> $GITHUB_ENV
220220
shell: bash
221221
if: matrix.test-suite != 'ts-unit'
222222

@@ -339,8 +339,8 @@ jobs:
339339

340340
- name: Set CI_PYTHON_PATH and CI_DISABLE_AUTO_SELECTION
341341
run: |
342-
echo "::set-env name=CI_PYTHON_PATH::python"
343-
echo "::set-env name=CI_DISABLE_AUTO_SELECTION::1"
342+
echo "CI_PYTHON_PATH=python" >> $GITHUB_ENV
343+
echo "CI_DISABLE_AUTO_SELECTION=1" >> $GITHUB_ENV
344344
shell: bash
345345

346346
- name: Run smoke tests
@@ -405,8 +405,8 @@ jobs:
405405

406406
- name: Set CI_PYTHON_PATH and CI_DISABLE_AUTO_SELECTION
407407
run: |
408-
echo "::set-env name=CI_PYTHON_PATH::python"
409-
echo "::set-env name=CI_DISABLE_AUTO_SELECTION::1"
408+
echo "CI_PYTHON_PATH=python" >> $GITHUB_ENV
409+
echo "CI_DISABLE_AUTO_SELECTION=1" >> $GITHUB_ENV
410410
shell: bash
411411

412412
- name: Run insider tests

0 commit comments

Comments
 (0)