From 9e1cdabc22ed3e0cad6a4b0f38c9b3e5ab74be61 Mon Sep 17 00:00:00 2001 From: Max Goltzsche Date: Sun, 21 Jul 2024 01:04:23 +0200 Subject: [PATCH] chore: update go version within gha workflow Also, use new GHA way to write step output --- .github/workflows/release.yml | 6 +++--- .github/workflows/verify.yml | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 2a2d41d..ca94716 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v1 with: - go-version: 1.19 + go-version: 1.22 - name: Check out code into the Go module directory uses: actions/checkout@v2 @@ -34,8 +34,8 @@ jobs: - name: Extract Helm version id: extract_helm_version run: | - printf '::set-output name=helm_version::' && - grep helm\.sh/helm/ go.mod | sed -E -e 's!helm\.sh/helm/v3|\s+|\+.*!!g; s!^v!!' | cut -d " " -f2 | grep -E .+ + HELM_VERSION="$(grep helm\.sh/helm/ go.mod | sed -E -e 's!helm\.sh/helm/v3|\s+|\+.*!!g; s!^v!!' | cut -d ' ' -f2 | grep -E .+)" + echo "helm_version=$HELM_VERSION" >> $GITHUB_OUTPUT - name: Build & Test run: make test check image e2e-test diff --git a/.github/workflows/verify.yml b/.github/workflows/verify.yml index 9b1b2a1..cd75272 100644 --- a/.github/workflows/verify.yml +++ b/.github/workflows/verify.yml @@ -17,7 +17,7 @@ jobs: - name: Set up Go uses: actions/setup-go@v1 with: - go-version: 1.19 + go-version: 1.22 - name: Check out code into the Go module directory uses: actions/checkout@v2 @@ -47,8 +47,8 @@ jobs: - name: Extract Helm version id: extract_helm_version run: | - printf '::set-output name=helm_version::' && - grep helm\.sh/helm/ go.mod | sed -E -e 's!helm\.sh/helm/v3|\s+|\+.*!!g; s!^v!!' | cut -d " " -f2 | grep -E .+ + HELM_VERSION="$(grep helm\.sh/helm/ go.mod | sed -E -e 's!helm\.sh/helm/v3|\s+|\+.*!!g; s!^v!!' | cut -d ' ' -f2 | grep -E .+)" + echo "helm_version=$HELM_VERSION" >> $GITHUB_OUTPUT - name: Dry-run release run: make snapshot