File tree 5 files changed +20
-7
lines changed
5 files changed +20
-7
lines changed Original file line number Diff line number Diff line change 45
45
- codecov/upload :
46
46
file : coverage/coverage-final.json
47
47
flags : frontend
48
+ xtra_args : -v -Z
48
49
49
50
workflows :
50
51
# This `lint-pack_validate_publish-dev` workflow will run on any commit.
Original file line number Diff line number Diff line change
1
+ ## 1.2.0
2
+ ** Features**
3
+ - #84 Allow extra parameters to be specified from the bash uploader
4
+
5
+ ** Fixes**
6
+ - #84 Fixes issue with parameters in #82
7
+
1
8
## 1.1.6
2
9
** Fixes**
3
10
- #81 Update bash script with best practices
Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " codecov-circleci-orb" ,
3
- "version" : " 1.1.6 " ,
3
+ "version" : " 1.2.0 " ,
4
4
"description" : " Codecov CircleCI Orb" ,
5
5
"main" : " index.js" ,
6
6
"devDependencies" : {
Original file line number Diff line number Diff line change @@ -37,6 +37,10 @@ commands:
37
37
description : When should this step run?
38
38
type : string
39
39
default : " always"
40
+ xtra_args :
41
+ description : Any extra flags as provided by the bash uploader (e.g. `-v -Z`)
42
+ type : string
43
+ default : " "
40
44
steps :
41
45
- run :
42
46
name : Download Codecov Bash Uploader
@@ -57,11 +61,12 @@ commands:
57
61
- run :
58
62
name : Upload Coverage Results
59
63
command : |
60
- cat codecov | bash -s -- \
61
- -Q "codecov-circleci-orb-1.1.4" \
62
- [[ -z << parameters.file >> ]] && echo "-f << parameters.file >>" || echo "" \
63
- -f "<< parameters.file >>" \
64
+ args=()
65
+ [[ -n "<< parameters.file >>" ]] && args+=( '-f << parameters.file >>' )
66
+ [[ -n "<< parameters.xtra_args >>" ]] && args+=( '<< parameters.xtra_args >>' )
67
+ bash codecov \
68
+ -Q "codecov-circleci-orb-1.2.0" \
64
69
-t "<< parameters.token >>" \
65
70
-n "<< parameters.upload_name >>" \
66
71
-F "<< parameters.flags >>" \
67
- -Z || echo 'Codecov upload failed'
72
+ ${args[@]}
You can’t perform that action at this time.
0 commit comments