We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 63c6b5b commit 87fc37eCopy full SHA for 87fc37e
.github/workflows/swagger-validation.yml
@@ -15,10 +15,14 @@ jobs:
15
- name: Checkout code
16
uses: actions/checkout@v3
17
18
- - name: Set up Go
+ - 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
23
uses: actions/setup-go@v4
24
with:
- go-version: 1.23
25
+ go-version: ${{ steps.runtimes.outputs.golang-version }}
26
27
# Step 2: Install swag (Swagger generator)
28
- name: Install Swag
0 commit comments