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: fix bash syntax in `release-new-version` workflow (#2690)

Shankar Singh C4aca6edab31d
diff --git a/.github/workflows/release-new-version.yml b/.github/workflows/release-new-version.yml
index a92cdfb44e..f489a3f8de 100644
--- a/.github/workflows/release-new-version.yml
+++ b/.github/workflows/release-new-version.yml
@@ -83,7 +83,7 @@ jobs:
PREVIOUS_TAG="$(git tag --sort='version:refname' --merged | tail --lines 1)"
if [[ "$(cog bump --auto --dry-run)" == *"No conventional commits for your repository that required a bump"* ]]; then
NEW_TAG="$(cog bump --patch --dry-run)"
- else if [[ "${PREVIOUS_TAG}" != "${NEW_TAG}" ]]
+ elif [[ "${PREVIOUS_TAG}" != "${NEW_TAG}" ]]; then
NEW_TAG="$(cog bump --auto --dry-run)"
fi
echo "NEW_TAG=${NEW_TAG}" >> $GITHUB_ENV