Skip to content

Commit 842c5df

Browse files
committed
use latest go
1 parent 6bc8f9c commit 842c5df

File tree

6 files changed

+15
-16
lines changed

6 files changed

+15
-16
lines changed

.github/workflows/buildTestBinaries.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
- uses: actions/setup-go@v5
3232
with:
3333
go-version: "^1.20" # The Go version to download (if necessary) and use.
34+
check-latest: true
3435

3536
- name: Set version and ui_file
3637
id: vars

.github/workflows/checkFormat.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ jobs:
2323
- uses: actions/setup-go@v5
2424
with:
2525
go-version: "^1.20" # The Go version to download (if necessary) and use.
26+
check-latest: true
2627

2728
- name: Check formatting
2829
shell: bash

.github/workflows/golangci-lint.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ jobs:
2424
- uses: actions/setup-go@v5
2525
with:
2626
go-version: "^1.20" # The Go version to download (if necessary) and use.
27+
check-latest: true
2728
- run: go version
2829
- name: golangci-lint
2930
uses: golangci/golangci-lint-action@v3

.github/workflows/release.yml

Lines changed: 10 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ jobs:
3636
- name: Set up Go
3737
uses: actions/setup-go@v5
3838
with:
39-
go-version: 1.20
39+
go-version: "1.20"
4040

4141
- name: Print Go version
4242
run: go version
@@ -49,28 +49,22 @@ jobs:
4949
run: |
5050
echo "ui_file=$(pwd)/.tmp/ui.tar.gz" >> $GITHUB_OUTPUT
5151
52-
- name: Dry-run GoReleaser
53-
if: ${{ github.ref_type != 'tag' }}
54-
uses: goreleaser/goreleaser-action@v5
55-
with:
56-
# either 'goreleaser' (default) or 'goreleaser-pro'
57-
distribution: goreleaser
58-
version: latest
59-
args: release --rm-dist --skip-validate --skip-publish
60-
env:
61-
UI_SEPARATOR: "--------UI--------"
62-
UI_FILE: ${{ steps.vars.outputs.ui_file }}
63-
# Your GoReleaser Pro key, if you are using the 'goreleaser-pro' distribution
64-
# GORELEASER_KEY: ${{ secrets.GORELEASER_KEY }}
52+
- name: Set args for goreleaser
53+
id: args
54+
run: |
55+
if ${{ github.ref_type == 'tag' }} ; then
56+
echo "args=release --rm-dist" >> $GITHUB_OUTPUT
57+
else
58+
echo "args=release --rm-dist --skip-validate --skip-publish" >> $GITHUB_OUTPUT
59+
fi
6560
6661
- name: Run GoReleaser
67-
if: ${{ github.ref_type == 'tag' }}
6862
uses: goreleaser/goreleaser-action@v5
6963
with:
7064
# either 'goreleaser' (default) or 'goreleaser-pro'
7165
distribution: goreleaser
7266
version: latest
73-
args: release --rm-dist
67+
args: ${{ steps.args.outputs.args }}
7468
env:
7569
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
7670
UI_SEPARATOR: "--------UI--------"

.github/workflows/staticAnalysis.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ jobs:
2020
- uses: actions/setup-go@v5
2121
with:
2222
go-version: "^1.20" # The Go version to download (if necessary) and use.
23+
check-latest: true
2324
- run: go version
2425

2526
- name: Run go vet

.github/workflows/test.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ jobs:
3131
- uses: actions/setup-go@v5
3232
with:
3333
go-version: "^1.20" # The Go version to download (if necessary) and use.
34+
check-latest: true
3435

3536
- name: Run a test
3637
run: make test

0 commit comments

Comments
 (0)