We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ab43056 commit ebba341Copy full SHA for ebba341
.github/workflows/testandvet.yml
@@ -25,11 +25,13 @@ jobs:
25
26
- name: Checkout code
27
uses: actions/checkout@v4.2.2
28
+ id: toolchain # see: https://github.com/actions/setup-go/issues/457#issuecomment-2480536859
29
+ run: echo "version=$(sed -ne '/^toolchain /s/^toolchain go//p' go.mod)" >> "$GITHUB_OUTPUT"
30
31
- name: Install Go
32
uses: actions/setup-go@v5.3.0
33
with:
- go-version-file: 'go.mod'
34
+ go-version: ${{ steps.toolchain.outputs.version }}
35
36
- name: Cache Go module and build cache
37
uses: actions/cache@v4.2.2
0 commit comments