From 43d9f954bbb9aff2f3e74f86a724c75c30189376 Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Wed, 20 Nov 2024 22:10:45 -0500 Subject: [PATCH] fix: force --codecov-yml-path --- dist/codecov.sh | 6 +++++- scripts/set_cli_args.sh | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) 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) )