Skip to content

Commit

Permalink
GH Actions: fix use of deprecated set-output (#136)
Browse files Browse the repository at this point in the history
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

Co-authored-by: jrfnl <[email protected]>
  • Loading branch information
jrfnl and jrfnl authored Jan 4, 2024
1 parent 2b6b086 commit 6452f7c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,14 +114,14 @@ jobs:
run: |
if [[ "${{ matrix.wp }}" =~ ^(trunk|latest|5\.9|[6789]\.[0-9])$ ]]; then
if [[ "${{ matrix.php }}" != "8.2" ]]; then
echo '::set-output name=TYPE::1'
echo 'TYPE=1' >> $GITHUB_OUTPUT
else
echo '::set-output name=TYPE::2'
echo 'TYPE=2' >> $GITHUB_OUTPUT
fi
elif [[ "${{ matrix.php }}" > "7.4" ]]; then
echo '::set-output name=TYPE::4'
echo 'TYPE=4' >> $GITHUB_OUTPUT
else
echo '::set-output name=TYPE::3'
echo 'TYPE=3' >> $GITHUB_OUTPUT
fi
# Remove the PHPUnit requirement for WP 5.9 and higher in favour of letting the Polyfills manage it.
Expand Down

0 comments on commit 6452f7c

Please sign in to comment.