Skip to content

Commit

Permalink
Merge pull request #34 from codecov/gio/fail-on-error-by-default
Browse files Browse the repository at this point in the history
chore: fail on error by default
  • Loading branch information
giovanni-guidini authored Jan 2, 2024
2 parents bb85483 + 412c605 commit ccd3eab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 8 deletions.
6 changes: 2 additions & 4 deletions dist/codecov_ats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,15 @@ codecovcli_args=""
# Install Codecov CLI
pip install codecov-cli

create_commit_args=""
[[ -n $INPUTS_FAIL_ON_ERROR ]] && create_commit_args+="-Z "
create_commit_args="--fail-on-error "
[[ -n $INPUTS_OVERRIDE_PARENT ]] && create_commit_args+="--parent-sha ${INPUTS_OVERRIDE_PARENT} "
[[ -n $INPUTS_OVERRIDE_PR ]] && create_commit_args+="-P ${INPUTS_OVERRIDE_PR} "
[[ -n $INPUTS_OVERRIDE_BRANCH ]] && create_commit_args+="-B ${INPUTS_OVERRIDE_BRANCH} "
[[ -n $INPUTS_OVERRIDE_COMMIT ]] && create_commit_args+="-C ${INPUTS_OVERRIDE_COMMIT} "
[[ -n $INPUTS_OVERRIDE_SLUG ]] && create_commit_args+="-r ${INPUTS_OVERRIDE_SLUG} "

# create-report
create_report_args=""
[[ -n $INPUTS_FAIL_ON_ERROR ]] && create_report_args+="-Z "
create_report_args="--fail-on-error "
[[ -n $INPUTS_OVERRIDE_COMMIT ]] && create_report_args+="-C ${INPUTS_OVERRIDE_COMMIT} "
[[ -n $INPUTS_OVERRIDE_SLUG ]] && create_report_args+="-r ${INPUTS_OVERRIDE_SLUG} "

Expand Down
6 changes: 2 additions & 4 deletions src/codecov_ats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -46,17 +46,15 @@ codecovcli_args=""
# Install Codecov CLI
pip install codecov-cli

create_commit_args=""
[[ -n $INPUTS_FAIL_ON_ERROR ]] && create_commit_args+="-Z "
create_commit_args="--fail-on-error "
[[ -n $INPUTS_OVERRIDE_PARENT ]] && create_commit_args+="--parent-sha ${INPUTS_OVERRIDE_PARENT} "
[[ -n $INPUTS_OVERRIDE_PR ]] && create_commit_args+="-P ${INPUTS_OVERRIDE_PR} "
[[ -n $INPUTS_OVERRIDE_BRANCH ]] && create_commit_args+="-B ${INPUTS_OVERRIDE_BRANCH} "
[[ -n $INPUTS_OVERRIDE_COMMIT ]] && create_commit_args+="-C ${INPUTS_OVERRIDE_COMMIT} "
[[ -n $INPUTS_OVERRIDE_SLUG ]] && create_commit_args+="-r ${INPUTS_OVERRIDE_SLUG} "

# create-report
create_report_args=""
[[ -n $INPUTS_FAIL_ON_ERROR ]] && create_report_args+="-Z "
create_report_args="--fail-on-error "
[[ -n $INPUTS_OVERRIDE_COMMIT ]] && create_report_args+="-C ${INPUTS_OVERRIDE_COMMIT} "
[[ -n $INPUTS_OVERRIDE_SLUG ]] && create_report_args+="-r ${INPUTS_OVERRIDE_SLUG} "

Expand Down

0 comments on commit ccd3eab

Please sign in to comment.