From f7fa523f5cc9cd922b2db9917bb3495e84c5b94a Mon Sep 17 00:00:00 2001 From: Tom Hu Date: Thu, 5 Dec 2024 22:17:11 -0300 Subject: [PATCH] fix: add a graceful exit --- action.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/action.yml b/action.yml index 6b340f8..97e5a40 100644 --- a/action.yml +++ b/action.yml @@ -264,3 +264,8 @@ runs: CC_VERBOSE: ${{ inputs.verbose }} CC_VERSION: ${{ inputs.version }} CC_YML_PATH: ${{ inputs.codecov_yml_path }} + + - name: Gracefully exit + if: ${{ !cancelled() }} && ${{ inputs.fail_ci_if_error }} == "true" + shell: bash + run: exit 0