peaceiris/actions-hugo

proposal: set-output is deprecated. Replace in docs with latest usage

jamesmortensen opened this issue · 2 comments

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.

Nice catch, Thank you!

This issue has been LOCKED because of it being resolved!

The issue has been fixed and is therefore considered resolved.
If you still encounter this or it has changed, open a new issue instead of responding to solved ones.