Skip to content

Commit 87fc37e

Browse files
committed
install runtime go
1 parent 63c6b5b commit 87fc37e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

.github/workflows/swagger-validation.yml

+6-2
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,14 @@ jobs:
1515
- name: Checkout code
1616
uses: actions/checkout@v3
1717

18-
- name: Set up Go
18+
- name: Detect Go version
19+
id: runtimes
20+
run: echo "::set-output name=golang-version::$(grep 'go [[:digit:]].[[:digit:]]*' go.work | cut -d' ' -f2)"
21+
22+
- name: Install Golang
1923
uses: actions/setup-go@v4
2024
with:
21-
go-version: 1.23
25+
go-version: ${{ steps.runtimes.outputs.golang-version }}
2226

2327
# Step 2: Install swag (Swagger generator)
2428
- name: Install Swag

0 commit comments

Comments
 (0)