Skip to content

Commit 6c0d94a

Browse files
authored
Use stable and oldstable instead actual version for actions/setup-go (#585)
`actions/setup-go` provides aliases for active 2 Go versions. With this, we don't have to maintain go version for github actions workflows like https://github.com/line/line-bot-sdk-go/pull/471/files and https://github.com/line/line-bot-sdk-go/pull/578/files. reference: https://github.com/actions/setup-go/blob/d35c59abb061a4a6fb18e82ac0862c26744d6ab5/README.md?plain=1#L134-L161
1 parent 4d5f355 commit 6c0d94a

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/generate-code.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
- name: Set up Go
2727
uses: actions/setup-go@d35c59abb061a4a6fb18e82ac0862c26744d6ab5 # v5.5.0
2828
with:
29-
go-version: '1.24'
29+
go-version: stable
3030
- name: Install goimports
3131
run: go install golang.org/x/tools/cmd/goimports@latest
3232

.github/workflows/go.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ jobs:
1515
strategy:
1616
matrix:
1717
go:
18-
- '1.23'
19-
- '1.24'
18+
- stable
19+
- oldstable
2020
steps:
2121
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2222
with:

0 commit comments

Comments
 (0)