Skip to content

Commit 4b0433e

Browse files
authored
Merge pull request #505 from chenrui333/go-1.23
chore: update actions to read go version from `go.mod`
2 parents f1a56d4 + 10a22b2 commit 4b0433e

File tree

6 files changed

+7
-7
lines changed

6 files changed

+7
-7
lines changed

.github/workflows/ci.yaml

+2-2
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868
- uses: actions/checkout@v4
6969
- uses: actions/setup-go@v5
7070
with:
71-
go-version: '1.23'
71+
go-version-file: go.mod
7272
- uses: actions/setup-node@v4
7373
with:
7474
node-version: "lts/*"
@@ -90,7 +90,7 @@ jobs:
9090
- uses: actions/checkout@v4
9191
- uses: actions/setup-go@v5
9292
with:
93-
go-version: '1.23'
93+
go-version-file: go.mod
9494
- name: Install dependencies
9595
run: |
9696
sudo apt-get install -y shellcheck

.github/workflows/codeql.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
- uses: actions/checkout@v4
2222
- uses: actions/setup-go@v5
2323
with:
24-
go-version: '1.23'
24+
go-version-file: go.mod
2525
- uses: github/codeql-action/init@v3
2626
with:
2727
config-file: ./.github/codeql/codeql-config.yaml

.github/workflows/generate.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ jobs:
2424
- uses: actions/checkout@v4
2525
- uses: actions/setup-go@v5
2626
with:
27-
go-version: '1.23'
27+
go-version-file: go.mod
2828
- name: Check new release on GitHub
2929
run: go run ./scripts/generate-popular-actions -d
3030
- run: go generate

.github/workflows/matcher.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- uses: actions/checkout@v4
2020
- uses: actions/setup-go@v5
2121
with:
22-
go-version: '1.23'
22+
go-version-file: go.mod
2323
- uses: actions/setup-node@v4
2424
with:
2525
node-version: "lts/*"

.github/workflows/release.yaml

+1-1
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
- run: ronn ./man/actionlint.1.ronn
2020
- uses: actions/setup-go@v5
2121
with:
22-
go-version: '1.23'
22+
go-version-file: go.mod
2323
- uses: goreleaser/goreleaser-action@v6
2424
with:
2525
version: '~> v2'

go.mod

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
module github.com/rhysd/actionlint
22

3-
go 1.18
3+
go 1.23.5
44

55
require (
66
github.com/bmatcuk/doublestar/v4 v4.7.1

0 commit comments

Comments
 (0)