actions icon indicating copy to clipboard operation
actions copied to clipboard

Replace deprecated command with environment file

Open jongwooo opened this issue 2 years ago • 1 comments

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

jongwooo avatar Feb 12 '23 16:02 jongwooo

echo "push=true" >> $GITHUB_OUTPUT

Abhi7739309 avatar Jun 20 '24 08:06 Abhi7739309