Skip to content

Open source, composable payments platform | PCI compliant | SaaS and Self-host options | Enables connectivity to multiple payment, payout, fraud, vault and tokenization providers | Uplifts authorization with intelligent routing and revenue recovery | Reduce payment processing costs with cost observability | Reduces payment ops with reconciliation

ci(create-hotfix-tag): exit workflow on an error (#2536)

Shankar Singh C3854d5827093
diff --git a/.github/workflows/create-hotfix-tag.yml b/.github/workflows/create-hotfix-tag.yml
index 378f4d71de..45699bda24 100644
--- a/.github/workflows/create-hotfix-tag.yml
+++ b/.github/workflows/create-hotfix-tag.yml
@@ -24,9 +24,10 @@ jobs:
shell: bash
run: |
if [[ ${{github.ref}} =~ ^refs/heads/hotfix-[0-9]+\.[0-9]+\.[0-9]+$ ]]; then
- echo "::notice::${{github.ref}} is a valid branch."
+ echo "::notice::${{github.ref}} is a valid branch."
else
- echo "::error::${{github.ref}} is not a valid branch."
+ echo "::error::${{github.ref}} is not a valid branch."
+ exit 1
fi
- name: Check if the latest commit is tag
@@ -36,6 +37,7 @@ jobs:
echo "::notice::The latest commit is not a tag "
else
echo "::error::The latest commit on the branch is already a tag"
+ exit 1
fi
- name: Determine current and next tag