Skip to content

Commit 7d7fd52

Browse files
authored
Pin go correctly to 1.21 (#69)
If go-version is given as numerical it will resolve as 1.2 (instead of 1.20) So this commit use string instead and also upgrade setup-go.
1 parent 7184636 commit 7d7fd52

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/workflows/releases.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Set up Go
12-
uses: actions/setup-go@v1
12+
uses: actions/setup-go@v5
1313
with:
14-
go-version: 1.20
14+
go-version: '1.21'
1515
id: go
1616
- name: Check out code into the Go module directory
1717
uses: actions/checkout@v2

.github/workflows/test.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,9 @@ jobs:
99
runs-on: ubuntu-latest
1010
steps:
1111
- name: Set up Go
12-
uses: actions/setup-go@v1
12+
uses: actions/setup-go@v5
1313
with:
14-
go-version: 1.20
14+
go-version: '1.21'
1515
id: go
1616
- name: Check out code into the Go module directory
1717
uses: actions/checkout@v1

0 commit comments

Comments
 (0)