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

Replace deprecated command with environment file #368

Merged
merged 1 commit into from
Feb 22, 2023
Merged

Replace deprecated command with environment file #368

merged 1 commit into from
Feb 22, 2023

Conversation

jongwooo
Copy link
Contributor

Proposed changes

Resolve #367

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=go_path::$(go env GOPATH)"
run: echo "::set-output name=go_version::$(grep "go 1." go.mod | cut -d " " -f 2)")

TO-BE

echo "go_path=$(go env GOPATH)" >> $GITHUB_OUTPUT
run: echo "go_version=$(grep "go 1." go.mod | cut -d " " -f 2)" >> $GITHUB_OUTPUT)

Checklist

Before creating a PR, run through this checklist and mark each as complete.

  • I have read the CONTRIBUTING guide
  • I have proven my fix is effective or that my feature works
  • I have checked that all unit tests pass after adding my changes
  • I have ensured the README is up to date
  • I have rebased my branch onto main
  • I will ensure my PR is targeting the main branch and pulling from my branch on my own fork

@jongwooo jongwooo requested a review from a team as a code owner February 22, 2023 16:33
@github-actions github-actions bot added the chore Pull requests for routine tasks label Feb 22, 2023
@lucacome lucacome self-assigned this Feb 22, 2023
Copy link
Member

@lucacome lucacome left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @jongwooo !

@lucacome lucacome merged commit 05231dd into nginxinc:main Feb 22, 2023
@jongwooo jongwooo deleted the chore/replace-deprecated-command-with-environment-file branch February 23, 2023 14:46
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
chore Pull requests for routine tasks
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Replace deprecated set-output command with environment file
2 participants