Skip to content

Commit

Permalink
chore: update go version within gha workflow
Browse files Browse the repository at this point in the history
Also, use new GHA way to write step output
  • Loading branch information
mgoltzsche committed Jul 20, 2024
1 parent 6d5b352 commit 9e1cdab
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/verify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 9e1cdab

Please sign in to comment.