Skip to content

Commit

Permalink
internal/ci: upgrade various actions to use node20 runtime
Browse files Browse the repository at this point in the history
Per the warning in:

    https://github.com/cue-lang/cuelang.org/actions/runs/10953532749

    The following actions use a deprecated Node.js version and will be
    forced to run on node20: docker/setup-buildx-action@v2,
    actions/setup-node@v3, peaceiris/actions-hugo@v2. For more info:
    https://github.blog/changelog/2024-03-07-github-actions-all-actions-will-run-on-node20-instead-of-node16-by-default/

We need to upgrade those actions to use the node20 runtime.

This CL fixes just that.

Signed-off-by: Paul Jolly <[email protected]>
Change-Id: I1bbbc334e6073e675e93d3a5c1a7dbe44b19298e
Dispatch-Trailer: {"type":"trybot","CL":1201540,"patchset":1,"ref":"refs/changes/40/1201540/1","targetBranch":"master"}
  • Loading branch information
myitcv authored and cueckoo committed Sep 20, 2024
1 parent 7c73013 commit 2e26c91
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/trybot.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -95,9 +95,9 @@ jobs:
name: Install macOS utils
run: brew install coreutils
- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
uses: docker/setup-buildx-action@v3
- name: Install Node
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20.9.0
- name: Install Go
Expand All @@ -113,7 +113,7 @@ jobs:
go env
- if: runner.os == 'Linux'
name: Install Hugo (${{ runner.os }})
uses: peaceiris/actions-hugo@v2
uses: peaceiris/actions-hugo@v3
with:
hugo-version: 0.128.2
extended: true
Expand Down
6 changes: 3 additions & 3 deletions internal/ci/github/trybot.cue
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ workflows: trybot: _repo.bashWorkflow & {

_installNode: json.#step & {
name: "Install Node"
uses: "actions/setup-node@v3"
uses: "actions/setup-node@v4"
with: {
"node-version": _repo.nodeVersion
}
Expand All @@ -320,7 +320,7 @@ _installGo: _repo.installGo & {

_installHugoLinux: _linuxStep & {
name: "Install Hugo (${{ runner.os }})"
uses: "peaceiris/actions-hugo@v2"
uses: "peaceiris/actions-hugo@v3"
with: {
"hugo-version": _repo.hugoVersion
extended: true
Expand Down Expand Up @@ -454,5 +454,5 @@ _setupGoActionsCaches: _repo.setupGoActionsCaches & {

_setupBuildx: json.#step & {
name: "Set up Docker Buildx"
uses: "docker/setup-buildx-action@v2"
uses: "docker/setup-buildx-action@v3"
}

0 comments on commit 2e26c91

Please sign in to comment.