File tree Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Expand file tree Collapse file tree 3 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 19
19
with :
20
20
# Required for release notes
21
21
fetch-depth : 0
22
- - id : go-version
23
- # Reference: https://github.com/actions/setup-go/issues/23
24
- run : echo "::set-output name=version::$(cat ./.go-version)"
25
22
- uses : actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
26
23
with :
27
- go-version : ${{ steps.go-version.outputs.version }}
24
+ go-version-file : ' go.mod '
28
25
- name : Generate Release Notes
29
26
# Fetch CHANGELOG.md contents up to Git tag prior to this release, skipping top two lines
30
27
run : sed -n -e "1{/# /d;}" -e "2{/^$/d;}" -e "/# $(git describe --abbrev=0 --exclude="$(git describe --abbrev=0 --match='v*.*.*' --tags)" --match='v*.*.*' --tags | tr -d v)/q;p" CHANGELOG.md > /tmp/release-notes.txt
Original file line number Diff line number Diff line change @@ -13,12 +13,12 @@ jobs:
13
13
- windows-latest
14
14
- macos-latest
15
15
steps :
16
+ - name : Check out code
17
+ uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
16
18
- name : Setup Go
17
19
uses : actions/setup-go@6edd4406fa81c3da01a34fa6f6343087c207a568 # v3.5.0
18
20
with :
19
- go-version : ' 1.18'
20
- - name : Check out code
21
- uses : actions/checkout@ac593985615ec2ede58e132d2e21d2b1cbd6127c # v3.3.0
21
+ go-version-file : ' go.mod'
22
22
- name : go vet
23
23
run : go vet ./...
24
24
- name : Run tests
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments