Hugo Publish Workflow issues
The issue
So, I was looking in my github account, and noticed that I had a warning for the job. It said that “Node.js 12 actions are deprecated. For more information see: https://github.blog/changelog/2022-09-22-github-actions-all-actions-will-begin-running-on-node16-instead-of-node12/. Please update the following actions to use Node.js 16: actions/checkout@v2”. This was only a warning, bit I decided that I should fix it anyway.
How to fix the issue
This step is how to schedule blog posts for the future, and to get them to appear on a given day. It lets you create content, and spread it out over a period, instead of having to push the new changes on a given day.
The following steps only need doing once
- Open c:\hugo\sites\example.com.github\workflows
- Within all the .yml files in the directory, open them in a text editor.
- Make a change to update “uses: actions/checkout@v2” to “uses: actions/checkout@v3”
- Save
- Commit and push
For more information, check out: