File tree Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Expand file tree Collapse file tree 1 file changed +16
-2
lines changed Original file line number Diff line number Diff line change @@ -35,10 +35,25 @@ steps:
3535- uses : actions/checkout@master
3636- uses : codecov/codecov-action@v4
3737 with :
38+ fail_ci_if_error : true # optional (default = false)
3839 files : ./coverage1.xml,./coverage2.xml # optional
3940 flags : unittests # optional
4041 name : codecov-umbrella # optional
42+ token : ${{ secrets.CODECOV_TOKEN }} # required
43+ verbose : true # optional (default = false)
44+ ` ` `
45+
46+ The Codecov token can also be passed in via environment variables:
47+
48+ ` ` ` yaml
49+ steps :
50+ - uses : actions/checkout@master
51+ - uses : codecov/codecov-action@v4
52+ with :
4153 fail_ci_if_error : true # optional (default = false)
54+ files : ./coverage1.xml,./coverage2.xml # optional
55+ flags : unittests # optional
56+ name : codecov-umbrella # optional
4257 verbose : true # optional (default = false)
4358 env :
4459 CODECOV_TOKEN : ${{ secrets.CODECOV_TOKEN }}
@@ -125,9 +140,8 @@ jobs:
125140 files: ./coverage1.xml,./coverage2.xml,!./cache
126141 flags: unittests
127142 name: codecov-umbrella
143+ token: ${{ secrets.CODECOV_TOKEN }}
128144 verbose: true
129- env:
130- CODECOV_TOKEN: ${{ secrets.CODECOV_TOKEN }}
131145` ` `
132146# # Contributing
133147
You can’t perform that action at this time.
0 commit comments