File tree Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Expand file tree Collapse file tree 2 files changed +5
-10
lines changed Original file line number Diff line number Diff line change @@ -74,15 +74,12 @@ jobs:
74
74
timeout-minutes : 15
75
75
steps :
76
76
- name : Check out the repo
77
- uses : actions/checkout@v2
78
-
79
- - name : Fetch Go version from .go-version
80
- run : echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
77
+ uses : actions/checkout@v3
81
78
82
79
- name : Set up Go
83
- uses : actions/setup-go@v2
80
+ uses : actions/setup-go@v3
84
81
with :
85
- go-version : ${{ env.GO_VERSION }}
82
+ go-version-file : .go-version
86
83
87
84
- name : Fetch OPA version
88
85
run : echo "OPA_VERSION=$(go list -m -f {{.Version}} github.com/open-policy-agent/opa | sed 's/v//')" >> $GITHUB_ENV
Original file line number Diff line number Diff line change @@ -109,12 +109,10 @@ jobs:
109
109
timeout-minutes : 15
110
110
steps :
111
111
- name : Check out the repo
112
- uses : actions/checkout@v2
113
- - name : Fetch Go version from .go-version
114
- run : echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
112
+ uses : actions/checkout@v3
115
113
- uses : actions/setup-go@v3
116
114
with :
117
- go-version : ${{ env.GO_VERSION }}
115
+ go-version-file : .go-version
118
116
- name : Check out the repo
119
117
uses : actions/checkout@v3
120
118
with :
You can’t perform that action at this time.
0 commit comments