Skip to content

Commit 304dcc5

Browse files
committed
feat: derive go version from go.mod file
1 parent 99b3315 commit 304dcc5

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ jobs:
2424
fetch-depth: 0
2525
- name: Set up Go
2626
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6
27+
with:
28+
go-version-file: 'go.mod'
2729
- name: Generate Software Bill of Materials
2830
uses: anchore/sbom-action@e22c389904149dbc22b58101806040fa8d37a610 # v0
2931
- name: Import GPG key

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ jobs:
1414

1515
- name: Set up Go
1616
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6
17+
with:
18+
go-version-file: 'go.mod'
1719

1820
- name: Run tests
1921
run: make test

0 commit comments

Comments
 (0)