actions
actions copied to clipboard
Replace deprecated command with environment file
Description
Resolve #149
Update workflows to use environment file instead of deprecated set-output
command.
For more information, see: https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/
I found the workflow files that use set-output
command through the following command:
$ find . -name '*.yml' -o -name '*.yaml' | xargs egrep '\bset-output\b'
AS-IS
echo "::set-output name=push::false"
echo "::set-output name=push::true"
TO-BE
echo "push=false" >> $GITHUB_OUTPUT
echo "push=true" >> $GITHUB_OUTPUT
echo "push=true" >> $GITHUB_OUTPUT