From 49395a59032abf3417b398d241867ef8f7b5ac5c Mon Sep 17 00:00:00 2001 From: jrfnl Date: Fri, 14 Oct 2022 19:54:22 +0200 Subject: [PATCH] GH Actions: fix use of deprecated `set-output` GitHub has deprecated the use of `set-output` (and `set-state`) in favour of new environment files. This commit updates workflows to use the new methodology. Refs: * https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ * https://docs.github.com/en/actions/using-workflows/workflow-commands-for-github-actions#environment-files --- .github/workflows/quicktest.yml | 6 +++--- .github/workflows/test.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/quicktest.yml b/.github/workflows/quicktest.yml index 2afdd598..3082f5b8 100644 --- a/.github/workflows/quicktest.yml +++ b/.github/workflows/quicktest.yml @@ -54,11 +54,11 @@ jobs: id: set_ini run: | if [[ "${{ matrix.phpcs_version }}" != "dev-master" ]]; then - echo '::set-output name=PHP_INI::error_reporting=E_ALL & ~E_DEPRECATED' + echo 'PHP_INI=error_reporting=E_ALL & ~E_DEPRECATED' >> $GITHUB_OUTPUT elif [[ "${{ matrix.php }}" == "latest" ]]; then - echo '::set-output name=PHP_INI::error_reporting=E_ALL & ~E_DEPRECATED' + echo 'PHP_INI=error_reporting=E_ALL & ~E_DEPRECATED' >> $GITHUB_OUTPUT else - echo '::set-output name=PHP_INI::error_reporting=-1' + echo 'PHP_INI=error_reporting=-1' >> $GITHUB_OUTPUT fi - name: Install PHP diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 74aecb79..b55f5164 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -116,11 +116,11 @@ jobs: id: set_ini run: | if [[ "${{ matrix.phpcs_version }}" != "dev-master" ]]; then - echo '::set-output name=PHP_INI::error_reporting=E_ALL & ~E_DEPRECATED' + echo 'PHP_INI=error_reporting=E_ALL & ~E_DEPRECATED' >> $GITHUB_OUTPUT elif [[ "${{ matrix.php }}" == "8.1" ]]; then - echo '::set-output name=PHP_INI::error_reporting=E_ALL & ~E_DEPRECATED' + echo 'PHP_INI=error_reporting=E_ALL & ~E_DEPRECATED' >> $GITHUB_OUTPUT else - echo '::set-output name=PHP_INI::error_reporting=-1' + echo 'PHP_INI=error_reporting=-1' >> $GITHUB_OUTPUT fi - name: Install PHP