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
Rust adyenbeginner-friendlyfeaturedfinancefintechhacktoberfesthigh-performanceopen-sourceorchestrationpaymentpayment-gatewaypayment-integrationpayment-processingpaymentspayments-platformrestful-apirustsdkstripeworks-with-react
ci: fix `create-hot-fix-tag` workflow to filter for `CalVer` tags (#3463)
Shankar Singh C98bf8f5b85d3
diff --git a/.github/workflows/create-hotfix-branch.yml b/.github/workflows/create-hotfix-branch.ymlindex e96508165f..d7afb388f2 100644--- a/.github/workflows/create-hotfix-branch.yml+++ b/.github/workflows/create-hotfix-branch.yml@@ -25,7 +25,7 @@ jobs:- name: Check if the input is valid tagshell: bashrun: |- if [[ ${{github.ref}} =~ ^refs/tags/[0-9]{4}\.[0-9]{2}\.[0-9]{2}.[0-9]+$ ]]; then+ if [[ ${{github.ref}} =~ ^refs/tags/[0-9]{4}\.[0-9]{2}\.[0-9]{2}\.[0-9]+$ ]]; thenecho "::notice::${{github.ref}} is a CalVer tag."elseecho "::error::${{github.ref}} is not a CalVer tag."diff --git a/.github/workflows/create-hotfix-tag.yml b/.github/workflows/create-hotfix-tag.ymlindex 8989094f1d..2250ce7ece 100644--- a/.github/workflows/create-hotfix-tag.yml+++ b/.github/workflows/create-hotfix-tag.yml@@ -31,7 +31,7 @@ jobs:- name: Check if the input is valid hotfix branchshell: bashrun: |- if [[ ${{github.ref}} =~ ^refs/heads/hotfix-[0-9]{4}\.[0-9]{2}\.[0-9]{2}.[0-9]+$ ]]; then+ if [[ ${{github.ref}} =~ ^refs/heads/hotfix-[0-9]{4}\.[0-9]{2}\.[0-9]{2}\.[0-9]+$ ]]; thenecho "::notice::${{github.ref}} is a valid hotfix branch."elseecho "::error::${{github.ref}} is not a valid hotfix branch."@@ -56,7 +56,7 @@ jobs:local previous_hotfix_numberlocal next_tag- previous_hotfix_number="$(echo "${previous_tag}" | awk -F. '{ print $4 }' | gsed -oE 's/([0-9]+)(-hotfix([0-9]+))?/\3/')"+ previous_hotfix_number="$(echo "${previous_tag}" | awk -F. '{ print $4 }' | sed -E 's/([0-9]+)(-hotfix([0-9]+))?/\3/')"if [[ -z "${previous_hotfix_number}" ]]; then# Previous tag was not a hotfix tag@@ -70,7 +70,13 @@ jobs:echo "${next_tag}"}- PREVIOUS_TAG="$(git tag --merged | sort --version-sort | tail --lines 1)"+ # Search for date-like tags (no strict checking), sort and obtain previous tag+ PREVIOUS_TAG="$(+ git tag --merged \+ | grep --extended-regexp '[0-9]{4}\.[0-9]{2}\.[0-9]{2}' \+ | sort --version-sort \+ | tail --lines 1+ )"NEXT_TAG="$(get_next_tag "${PREVIOUS_TAG}")"echo "PREVIOUS_TAG=${PREVIOUS_TAG}" >> $GITHUB_ENV