diff --git a/dist/codecov.sh b/dist/codecov.sh index d4664a8..dd11fb1 100755 --- a/dist/codecov.sh +++ b/dist/codecov.sh @@ -123,7 +123,11 @@ fi cc_cli_args=() cc_cli_args+=( $(k_arg AUTO_LOAD_PARAMS_FROM) $(v_arg AUTO_LOAD_PARAMS_FROM)) cc_cli_args+=( $(k_arg ENTERPRISE_URL) $(v_arg ENTERPRISE_URL)) -cc_cli_args+=( $(k_arg YML_PATH) $(v_arg YML_PATH)) +if [ -n $CC_YML_PATH ] +then + cc_cli_args+=( "--codecov-yml-path" ) + cc_cli_args+=( "$CC_YML_PATH" ) +fi cc_cli_args+=( $(write_truthy_args CC_VERBOSE) ) cc_cc_args=() cc_cc_args+=( $(write_truthy_args CC_FAIL_ON_ERROR) ) diff --git a/scripts/set_cli_args.sh b/scripts/set_cli_args.sh index f5e448b..b586893 100755 --- a/scripts/set_cli_args.sh +++ b/scripts/set_cli_args.sh @@ -4,5 +4,9 @@ codecov_cli_args=() codecov_cli_args+=( $(k_arg AUTO_LOAD_PARAMS_FROM) $(v_arg AUTO_LOAD_PARAMS_FROM)) codecov_cli_args+=( $(k_arg ENTERPRISE_URL) $(v_arg ENTERPRISE_URL)) -codecov_cli_args+=( $(k_arg YML_PATH) $(v_arg YML_PATH)) +if [ -n $CODECOV_YML_PATH ] +then + codecov_cli_args+=( "--codecov-yml-path" ) + codecov_cli_args+=( "$CODECOV_YML_PATH" ) +fi codecov_cli_args+=( $(write_truthy_args CODECOV_VERBOSE) )