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

support: Node.js 16 actions are deprecated #647

Closed
3 tasks done
yusufmalikul opened this issue Mar 17, 2024 · 8 comments
Closed
3 tasks done

support: Node.js 16 actions are deprecated #647

yusufmalikul opened this issue Mar 17, 2024 · 8 comments
Assignees
Labels
resolved resolved issue support User support

Comments

@yusufmalikul
Copy link

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 question

I use peaceiris/actions-hugo@v2 but get deprecated version warning.

Relevant links

Public repository:
YAML config:
YAML workflow:

Relevant log output

Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: peaceiris/actions-hugo@v2. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

Additional context.

- name: Setup Hugo
        uses: peaceiris/actions-hugo@v2
        with:
          hugo-version: '0.101.0'
@undergroundwires
Copy link

I have the same issue.

@yusufmalikul
Copy link
Author

@undergroundwires the current workaround is to use the commit hash:

uses: peaceiris/actions-hugo@16361eb4acea8698b220b76c0d4e84e1fd22c61d

@Shaoting-Feng
Copy link

Shaoting-Feng commented Mar 28, 2024

Got this warning
Node.js 16 actions are deprecated. Please update the following actions to use Node.js 20: peaceiris/actions-hugo@16361eb4acea8698b220b76c0d4e84e1fd22c61d. For more information see: https://github.blog/changelog/2023-09-22-github-actions-transitioning-from-node-16-to-node-20/.

pryrt added a commit to notepad-plus-plus/npp-usermanual that referenced this issue Mar 28, 2024
GitHubActions have been warning not to use node.js 16, and to upgrade to 20; per `peaceiris/actions-hugo#647 and `peaceiris/actions-hugo#644, it's a known issue; the second seems to imply that @v2.6 should work, so I will try that on the next deployment

[skip ci]
@chipzoller
Copy link

This was addressed in #641 but @peaceiris needs to cut a release.

@elibroftw
Copy link

elibroftw commented Apr 1, 2024

I forked the project, updated the dependencies, and added the dist.

uses: elibroftw/actions-hugo@8c27d714d00dc4a9c40c3c9a91a1176f000b6ab9

We should strive for simplicity and use the following instead.

- name: Install Hugo
  run: sudo apt -y install hugo

@peaceiris
Copy link
Owner

peaceiris commented Apr 2, 2024

Thanks all!

Could you please try v3.0.0?

      - uses: peaceiris/actions-hugo@v3.0.0
        with:
          hugo-version: '0.124.1'

https://github.com/peaceiris/actions-hugo/releases/tag/v3.0.0

The latest v3 has been created with v3.0.0.

https://github.com/peaceiris/actions-hugo/releases/tag/v3

@ricomariani
Copy link

peaceiris/actions-hugo@v3 is working for me.,

@peaceiris peaceiris added the resolved resolved issue label Apr 2, 2024
Copy link

github-actions bot commented Apr 2, 2024

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.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Apr 2, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
resolved resolved issue support User support
Projects
None yet
Development

No branches or pull requests

8 participants
@undergroundwires @yusufmalikul @elibroftw @chipzoller @ricomariani @peaceiris @Shaoting-Feng and others