CI: use go-version-file with go.mod instead of go-version with a env var

This commit is contained in:
Hyeongju Johannes Lee 2023-03-22 14:20:04 +02:00
parent 3c06e74365
commit 762578bc3f

View File

@ -9,7 +9,6 @@ on:
- main
- 'release-*'
env:
GO_VERSION: 1.20
K8S_VERSION: 1.26.1
permissions:
contents: read
@ -49,7 +48,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod
check-latest: true
- name: Install build dependencies needed for VPU plugin
run: |
@ -68,7 +67,7 @@ jobs:
- uses: actions/checkout@v3
- uses: actions/setup-go@v4
with:
go-version: ${{ env.GO_VERSION }}
go-version-file: go.mod
check-latest: true
- name: Check Dockerfiles
run: make check-dockerfiles