Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

misc: replace deprecated command with environment file #14751

Merged
merged 3 commits into from
Mar 13, 2023
Merged

misc: replace deprecated command with environment file #14751

merged 3 commits into from
Mar 13, 2023

Conversation

jongwooo
Copy link
Contributor

@jongwooo jongwooo commented Feb 4, 2023

Signed-off-by: jongwooo jongwooo.han@gmail.com

Summary

Resolve #14750

Update publish.yml 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 .github/workflows -name '*.yml' | xargs egrep '\bset-output\b'

AS-IS

run: test -z $(git rev-list --after="1 day" ${{ github.sha }}) && echo "::set-output name=should_run::false"

TO-BE

run: test -z $(git rev-list --after="1 day" ${{ github.sha }}) && echo "should_run=false" >> $GITHUB_OUTPUT

Signed-off-by: jongwooo <jongwooo.han@gmail.com>
@adamraine adamraine merged commit c2b6a0d into GoogleChrome:main Mar 13, 2023
@jongwooo jongwooo deleted the misc/replace-deprecated-command-with-environment-file branch March 14, 2023 01:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace deprecated set-output command with environment file
3 participants