From fa5fc30bb0527cb152884845539c18b4aa7d46a8 Mon Sep 17 00:00:00 2001 From: Matthias Diester Date: Mon, 29 Jul 2024 12:29:08 +0200 Subject: [PATCH] Use Go `1.22` in GitHub Actions Use latest Go version `1.22` for any Go related GitHub Action. --- .github/workflows/ci.yml | 6 +++--- .github/workflows/cleanup-nightly-assets.yaml | 3 +-- .github/workflows/mirror-images.yaml | 1 + .github/workflows/nightly.yaml | 2 +- .github/workflows/release.yaml | 2 +- .github/workflows/verify.yaml | 2 +- 6 files changed, 8 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f6cc935bba..9225df751b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -21,7 +21,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: '1.21.x' + go-version: 1.22.x cache: true check-latest: true - name: Install Trivy @@ -76,7 +76,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: '1.21.x' + go-version: 1.22.x cache: true check-latest: true - name: Install Ko @@ -162,7 +162,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: '1.21.x' + go-version: 1.22.x cache: true check-latest: true - name: Install kubectl diff --git a/.github/workflows/cleanup-nightly-assets.yaml b/.github/workflows/cleanup-nightly-assets.yaml index bc028dd4d8..6434d83c90 100644 --- a/.github/workflows/cleanup-nightly-assets.yaml +++ b/.github/workflows/cleanup-nightly-assets.yaml @@ -26,7 +26,7 @@ jobs: run: | WORK_DIR=`mktemp -d -p "$DIR"` gh release download nightly -D ${WORK_DIR} - + ASSETS_TOTAL=$(ls $WORK_DIR | wc -l) echo "[INFO] Currently ${ASSETS_TOTAL} assets for nightly release" @@ -48,4 +48,3 @@ jobs: rm -rf "$WORK_DIR" echo "[INFO] Deleted temporary directory ${WORK_DIR}" - \ No newline at end of file diff --git a/.github/workflows/mirror-images.yaml b/.github/workflows/mirror-images.yaml index adb32410f0..c2b743263d 100644 --- a/.github/workflows/mirror-images.yaml +++ b/.github/workflows/mirror-images.yaml @@ -24,6 +24,7 @@ jobs: library/golang:1.19 \ library/golang:1.20 \ library/golang:1.21 \ + library/golang:1.22 \ library/maven:3-jdk-8-openj9 \ library/node:12 \ library/node:14 \ diff --git a/.github/workflows/nightly.yaml b/.github/workflows/nightly.yaml index 1c868e9fc9..43453f0ae7 100644 --- a/.github/workflows/nightly.yaml +++ b/.github/workflows/nightly.yaml @@ -22,7 +22,7 @@ jobs: - uses: actions/checkout@v4 - uses: actions/setup-go@v5 with: - go-version: '1.21.x' + go-version: 1.22.x cache: true check-latest: true diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index 93f1a9a5d4..8ec589437b 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -37,7 +37,7 @@ jobs: fetch-depth: 0 # Fetch all history, needed for release note generation. - uses: actions/setup-go@v5 with: - go-version: '1.21.x' + go-version: 1.22.x cache: true check-latest: true diff --git a/.github/workflows/verify.yaml b/.github/workflows/verify.yaml index e44f6b177f..a5ea64ab48 100644 --- a/.github/workflows/verify.yaml +++ b/.github/workflows/verify.yaml @@ -27,7 +27,7 @@ jobs: - name: Install Go uses: actions/setup-go@v5 with: - go-version: '1.21.x' + go-version: 1.22.x cache: true check-latest: true cache-dependency-path: go/src/github.com/shipwright-io/build