File tree 1 file changed +4
-4
lines changed 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change 10
10
pull_request :
11
11
branches :
12
12
- main
13
+ - release-*
13
14
types :
14
15
- opened
15
16
- reopened
32
33
name : Checks and variables
33
34
runs-on : ubuntu-20.04
34
35
outputs :
35
- sha : ${{ steps.vars.outputs.sha }}
36
36
go_path : ${{ steps.vars.outputs.go_path }}
37
37
steps :
38
38
- name : Checkout Repository
45
45
- name : Output Variables
46
46
id : vars
47
47
run : |
48
- echo "::set-output name=sha::$(echo ${GITHUB_SHA} | cut -c1-7)"
49
- echo "::set-output name=go_path::$(go env GOPATH)"
48
+ echo "go_path=$(go env GOPATH)" >> $GITHUB_OUTPUT
50
49
- name : Check if go.mod and go.sum are up to date
51
50
run : |
52
51
go mod tidy && git diff --exit-code -- go.mod go.sum
68
67
- name : Upload Coverage Report
69
68
uses : actions/upload-artifact@v3
70
69
with :
71
- name : cover-${{ needs.vars.outputs.sha }}.html
70
+ name : cover-${{ github.run_id }}.html
72
71
path : ${{ github.workspace }}/cover.html
73
72
if : always()
74
73
@@ -129,6 +128,7 @@ jobs:
129
128
130
129
- name : Download Syft
131
130
uses : anchore/sbom-action/download-syft@v0.12.0
131
+ if : startsWith(github.ref, 'refs/tags/')
132
132
133
133
- name : Build binary
134
134
uses : goreleaser/goreleaser-action@v3
You can’t perform that action at this time.
0 commit comments