From b7ab9f5eaed2c1af219a33be576efab6bcb64c8d Mon Sep 17 00:00:00 2001 From: Paul Jolly Date: Fri, 20 Sep 2024 08:30:49 +0100 Subject: [PATCH] internal/ci: upgrade various actions to use node20 runtime 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 Change-Id: I1bbbc334e6073e675e93d3a5c1a7dbe44b19298e Dispatch-Trailer: {"type":"trybot","CL":1201540,"patchset":3,"ref":"refs/changes/40/1201540/3","targetBranch":"master"} --- .github/workflows/trybot.yaml | 6 +++--- internal/ci/github/trybot.cue | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/trybot.yaml b/.github/workflows/trybot.yaml index fbbb7d000f..3807ad8baa 100644 --- a/.github/workflows/trybot.yaml +++ b/.github/workflows/trybot.yaml @@ -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 @@ -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 diff --git a/internal/ci/github/trybot.cue b/internal/ci/github/trybot.cue index 71137799e8..65a3b1a6b9 100644 --- a/internal/ci/github/trybot.cue +++ b/internal/ci/github/trybot.cue @@ -313,7 +313,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 } @@ -326,7 +326,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 @@ -460,5 +460,5 @@ _setupGoActionsCaches: _repo.setupGoActionsCaches & { _setupBuildx: json.#step & { name: "Set up Docker Buildx" - uses: "docker/setup-buildx-action@v2" + uses: "docker/setup-buildx-action@v3" }