peaceiris / actions-hugo

GitHub Actions for Hugo ⚡️ Setup Hugo quickly and build your site fast. Hugo extended, Hugo Modules, Linux (Ubuntu), macOS, and Windows are supported.
https://github.com/marketplace/actions/hugo-setup
MIT License
1.41k stars 84 forks source link

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

Closed jamesmortensen closed 1 year ago

jamesmortensen commented 1 year ago

Checklist

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 1 year ago

Nice catch, Thank you!

github-actions[bot] commented 1 year ago

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.

Log | Bot Usage