Skip to content

Commit

Permalink
Merge pull request #26 from codecov/th/fix-name-with-spaces
Browse files Browse the repository at this point in the history
fix: update CODECOV_NAME to allow spaces
  • Loading branch information
thomasrockhu-codecov authored Nov 19, 2024
2 parents 25f50b4 + ce1bd32 commit d2f9af5
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 4 deletions.
7 changes: 5 additions & 2 deletions dist/codecov.sh
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,10 @@ cc_du_args+=( $(write_existing_args CC_GIT_SERVICE) )
cc_du_args+=( $(write_truthy_args CC_HANDLE_NO_REPORTS_FOUND) )
cc_du_args+=( $(write_existing_args CC_JOB_CODE) )
cc_du_args+=( $(write_truthy_args CC_LEGACY) )
cc_du_args+=( $(write_existing_args CC_NAME) )
if [ -n "$CC_NAME" ];
then
cc_du_args+=( "--name" "$CC_NAME" )
fi
cc_du_args+=( $(write_existing_args CC_NETWORK_FILTER) )
cc_du_args+=( $(write_existing_args CC_NETWORK_PREFIX) )
cc_du_args+=( $(write_existing_args CC_NETWORK_ROOT_FOLDER) )
Expand Down Expand Up @@ -232,7 +235,7 @@ if ! ./$cc_filename \
${cc_cli_args[*]} \
do-upload \
${token_arg[*]} \
${cc_du_args[*]};
"${cc_du_args[@]}";
then
exit_if_error "Failed to upload"
fi
Empty file removed scripts/envs
Empty file.
5 changes: 4 additions & 1 deletion scripts/set_do_upload_args.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,10 @@ codecov_du_args+=( $(write_existing_args CODECOV_GIT_SERVICE) )
codecov_du_args+=( $(write_truthy_args CODECOV_HANDLE_NO_REPORTS_FOUND) )
codecov_du_args+=( $(write_existing_args CODECOV_JOB_CODE) )
codecov_du_args+=( $(write_truthy_args CODECOV_LEGACY) )
codecov_du_args+=( $(write_existing_args CODECOV_NAME) )
if [ -n "$CODECOV_NAME" ];
then
codecov_du_args+=( "--name" "$CODECOV_NAME" )
fi
codecov_du_args+=( $(write_existing_args CODECOV_NETWORK_FILTER) )
codecov_du_args+=( $(write_existing_args CODECOV_NETWORK_PREFIX) )
codecov_du_args+=( $(write_existing_args CODECOV_NETWORK_ROOT_FOLDER) )
Expand Down
2 changes: 1 addition & 1 deletion scripts/upload.sh
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ if ! ./$codecov_filename \
${codecov_cli_args[*]} \
do-upload \
${token_arg[*]} \
${codecov_du_args[*]};
"${codecov_du_args[@]}";
then
exit_if_error "Failed to upload"
fi

0 comments on commit d2f9af5

Please sign in to comment.