Skip to content

Commit a3437a6

Browse files
committed
#patch: bump go version
1 parent 7664f84 commit a3437a6

File tree

2 files changed

+13
-3
lines changed

2 files changed

+13
-3
lines changed

.github/workflows/release.yml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,14 @@ jobs:
1414
uses: actions/checkout@v2
1515
- name: Unshallow
1616
run: git fetch --prune --unshallow
17-
- name: Set up Go
17+
- id: vars
18+
run: |
19+
echo ::set-output name=go_version::$(curl -s https://raw.githubusercontent.com/actions/go-versions/main/versions-manifest.json | grep -oE '"version": "[0-9]{1}.[0-9]{1,}(.[0-9]{1,})?"' | head -1 | cut -d':' -f2 | sed 's/ //g; s/"//g')
20+
echo "Using Go version ${{ steps.vars.outputs.go_version }}"
21+
- name: Install Go
1822
uses: actions/setup-go@v2
1923
with:
20-
go-version: 1.15
24+
go-version: ${{ steps.vars.outputs.go_version }}
2125
- name: Import GPG key
2226
id: import_gpg
2327
uses: paultyng/ghaction-import-gpg@v2.1.0

.github/workflows/test.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,14 @@ jobs:
77
test:
88
runs-on: ubuntu-latest
99
steps:
10+
- id: vars
11+
run: |
12+
echo ::set-output name=go_version::$(curl -s https://raw.githubusercontent.com/actions/go-versions/main/versions-manifest.json | grep -oE '"version": "[0-9]{1}.[0-9]{1,}(.[0-9]{1,})?"' | head -1 | cut -d':' -f2 | sed 's/ //g; s/"//g')
13+
echo "Using Go version ${{ steps.vars.outputs.go_version }}"
1014
- name: Install Go
1115
uses: actions/setup-go@v2
16+
with:
17+
go-version: ${{ steps.vars.outputs.go_version }}
1218
- name: Checkout code
1319
uses: actions/checkout@v2
1420
- name: Test
@@ -26,4 +32,4 @@ jobs:
2632
- name: golangci-lint
2733
uses: golangci/golangci-lint-action@v2
2834
with:
29-
version: v1.32
35+
version: v1.33

0 commit comments

Comments
 (0)