File tree Expand file tree Collapse file tree 3 files changed +3
-12
lines changed Expand file tree Collapse file tree 3 files changed +3
-12
lines changed Original file line number Diff line number Diff line change 6
6
runs-on : ubuntu-latest
7
7
steps :
8
8
- uses : actions/checkout@v3
9
- - name : Fetch Go version from .go-version
10
- run : echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
11
9
- uses : actions/setup-go@v3
12
10
with :
13
- go-version : ${{ env.GO_VERSION }}
11
+ go-version-file : .go-version
14
12
- name : check pr-has-fragment
15
13
run : |
16
14
GOBIN=$PWD/bin go install github.com/elastic/elastic-agent-changelog-tool@latest
Original file line number Diff line number Diff line change 20
20
steps :
21
21
- uses : actions/checkout@v3
22
22
23
- # Uses Go version from the repository.
24
- - name : Read .go-version file
25
- id : goversion
26
- run : echo "::set-output name=version::$(cat .go-version)"
27
-
28
23
- uses : actions/setup-go@v3
29
24
with :
30
- go-version : " ${{ steps.goversion.outputs. version }} "
25
+ go-version-file : .go- version
31
26
32
27
- name : golangci-lint
33
28
uses : golangci/golangci-lint-action@v3
Original file line number Diff line number Diff line change 12
12
runs-on : macos-latest
13
13
steps :
14
14
- uses : actions/checkout@v3
15
- - name : Fetch Go version from .go-version
16
- run : echo "GO_VERSION=$(cat .go-version)" >> $GITHUB_ENV
17
15
- uses : actions/setup-go@v3
18
16
with :
19
- go-version : ${{ env.GO_VERSION }}
17
+ go-version-file : .go-version
20
18
- name : Install dependencies
21
19
run : go install github.com/magefile/mage
22
20
- name : Run build
You can’t perform that action at this time.
0 commit comments