File tree Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Expand file tree Collapse file tree 3 files changed +10
-2
lines changed Original file line number Diff line number Diff line change 20
20
uses : actions/checkout@v1
21
21
22
22
- name : build
23
+ env :
24
+ PACKAGE_NAME_PREFIX : ${{ github.workflow }}
23
25
run : goreleaser --snapshot
24
26
25
27
- name : upload
Original file line number Diff line number Diff line change 63
63
task test-integration
64
64
65
65
- name : Send unit tests coverage to Codecov
66
- if : matrix.operating-system != 'windows-2019'
66
+ # Since secrets aren't available on forks, we only
67
+ # upload coverage on `push`. This might change if
68
+ # Codecov whitelists GitHub, lifting the need
69
+ # for a token.
70
+ if : >
71
+ matrix.operating-system != 'windows-2019' &&
72
+ github.event_name == 'push'
67
73
uses : codecov/codecov-action@v1.0.2
68
74
with :
69
75
token : ${{secrets.CODECOV_TOKEN}}
Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ checksum:
3
3
name_template : ' {{ .Tag }}-{{ time "20060102" }}-checksums.txt'
4
4
5
5
snapshot :
6
- name_template : ' {{ .Tag }}-{{ time "20060102" }}'
6
+ name_template : ' {{ .Env.PACKAGE_NAME_PREFIX }}-{{ time "20060102" }}'
7
7
8
8
release :
9
9
prerelease : auto
You can’t perform that action at this time.
0 commit comments