File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -17,13 +17,13 @@ jobs:
17
17
uses : actions/checkout@v3
18
18
with :
19
19
fetch-depth : 2
20
- - name : Check license
21
- run : make license-check
22
- if : ${{ github.event_name == 'pull_request' }}
23
20
- name : Set up Go
24
21
uses : actions/setup-go@v3
25
22
with :
26
23
go-version-file : .go_version
24
+ - name : Check license
25
+ run : make license-check
26
+ if : ${{ github.event_name == 'pull_request' }}
27
27
- name : Go lint
28
28
run : make lint
29
29
if : ${{ github.event_name == 'pull_request' }}
Original file line number Diff line number Diff line change 18
18
# Check if this GO tools version used is at least the version of go specified in
19
19
# the go.mod file. The version in go.mod should be in sync with other repos.
20
20
GO_VERSION := $(shell go version | awk '{print substr($$3, 3, 10) }')
21
- MOD_VERSION := $(shell awk '/^go/ {print $$2}' go.mod)
21
+ MOD_VERSION := $(shell cat .go_version)
22
22
23
23
GM := $(word 1,$(subst ., ,$(GO_VERSION ) ) )
24
24
MM := $(word 1,$(subst ., ,$(MOD_VERSION ) ) )
You can’t perform that action at this time.
0 commit comments