Skip to content

fix: update GitHub Actions to Node.js 24 compatible versions#91

Draft
Copilot wants to merge 4 commits into
mainfrom
copilot/update-actions-for-node-24
Draft

fix: update GitHub Actions to Node.js 24 compatible versions#91
Copilot wants to merge 4 commits into
mainfrom
copilot/update-actions-for-node-24

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 1, 2026

Node.js 20 actions are deprecated and will be forced to Node.js 24 by default on June 2, 2026. Both workflow files are affected.

github-pages.yml

Action Before After
checkout actions/checkout@v4 actions/checkout@v6
hugo setup peaceiris/actions-hugo@v3 direct wget + dpkg install (no node24 release exists yet)
setup-node actions/setup-node@v4 actions/setup-node@v6
deploy peaceiris/actions-gh-pages@v3 JamesIves/github-pages-deploy-action@v4

Also bumps the installed Node.js version from EOL 18 → 20 and updates publish_dir/github_token inputs to match the JamesIves action's API (folder, token).

update-api-refs.yaml

Action Before After
checkout actions/checkout@v4 actions/checkout@v6
setup-go actions/setup-go@v5 actions/setup-go@v6
create-pull-request peter-evans/create-pull-request@v6 peter-evans/create-pull-request@v8

monitor-actions-hugo-node24.yml (new)

Adds a new scheduled workflow that runs once per day at 08:00 UTC to monitor peaceiris/actions-hugo#675. When the issue is closed and the latest release's action.yml confirms a node24 runtime, the workflow automatically opens a PR to replace the manual Hugo binary install in github-pages.yml with peaceiris/actions-hugo@<latest-tag>, preserving the Hugo version dynamically from the existing workflow.

Copilot AI changed the title [WIP] Update build and deploy workflow to use Node.js 24 actions fix: update GitHub Actions to Node.js 24 compatible versions May 1, 2026
@sjwaight
Copy link
Copy Markdown
Member

It looks like actions-hugo might bump to Node 24 based on this Issue: peaceiris/actions-hugo#675. Copilot monitor this Issue - check once per day - and if it is closed as resolved, check if there's a Node24 version available of this action.

Copy link
Copy Markdown
Contributor Author

Copilot AI commented May 1, 2026

It looks like actions-hugo might bump to Node 24 based on this Issue: peaceiris/actions-hugo#675. Copilot monitor this Issue - check once per day - and if it is closed as re...

Added .github/workflows/monitor-actions-hugo-node24.yml (commit e2d55df) which runs daily at 08:00 UTC. Each run:

  1. Calls the GitHub API to check whether peaceiris/actions-hugo#675 is closed.
  2. If closed, fetches the latest release's action.yml and uses Python to parse the using: runtime field — no action if it's still node20.
  3. When node24 is confirmed, it patches github-pages.yml (replacing the manual wget/dpkg block with peaceiris/actions-hugo@<tag>, extracting the Hugo version dynamically from the existing workflow) and opens a PR via peter-evans/create-pull-request@v8.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Build and deploy workflow using deprecated node version.

2 participants