proposal: set-output is deprecated. Replace in docs with latest usage
jamesmortensen opened this issue · 2 comments
jamesmortensen commented
Checklist
- I am using the latest version of this action.
- I have read the latest README and followed the instructions.
- I have read the latest GitHub Actions official documentation and learned the basic spec and concepts.
Describe your proposal
There is a deprecated usage of setting step outputs in the documentation.
Describe the solution you'd like
Let's fix it so it's using the new non-deprecated usage.
Describe alternatives you've considered
No alternatives
Additional context
This line in the documentation is deprecated in GitHub Actions:
echo "::set-output name=HUGO_VERSION::${HUGO_VERSION}"
It can be replaced with this instead:
echo "HUGO_VERSION=$HUGO_VERSION" >> $GITHUB_OUTPUT
See https://github.blog/changelog/2022-10-11-github-actions-deprecating-save-state-and-set-output-commands/ for more details.
peaceiris commented
Nice catch, Thank you!
github-actions commented