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: update `create-hotfix-tag` and `create-hotfix-branch` workflows to handle CalVer tags (#3451)
Shankar Singh C6e3195a5aabe
diff --git a/.github/workflows/create-hotfix-branch.yml b/.github/workflows/create-hotfix-branch.ymlindex 6fd2d49477..e96508165f 100644--- a/.github/workflows/create-hotfix-branch.yml+++ b/.github/workflows/create-hotfix-branch.yml@@ -25,17 +25,17 @@ jobs:- name: Check if the input is valid tagshell: bashrun: |- if [[ ${{github.ref}} =~ ^refs/tags/v[0-9]+\.[0-9]+\.[0-9]+$ ]]; then- echo "::notice::${{github.ref}} is a valid tag."+ if [[ ${{github.ref}} =~ ^refs/tags/[0-9]{4}\.[0-9]{2}\.[0-9]{2}.[0-9]+$ ]]; then+ echo "::notice::${{github.ref}} is a CalVer tag."else- echo "::error::${{github.ref}} is not a valid tag."+ echo "::error::${{github.ref}} is not a CalVer tag."exit 1fi- name: Create hotfix branchshell: bashrun: |- HOTFIX_BRANCH="hotfix-${GITHUB_REF#refs/tags/v}"+ HOTFIX_BRANCH="hotfix-${GITHUB_REF#refs/tags/}"if git switch --create "$HOTFIX_BRANCH"; thengit push origin "$HOTFIX_BRANCH"diff --git a/.github/workflows/create-hotfix-tag.yml b/.github/workflows/create-hotfix-tag.ymlindex e9df004139..8989094f1d 100644--- a/.github/workflows/create-hotfix-tag.yml+++ b/.github/workflows/create-hotfix-tag.yml@@ -31,10 +31,10 @@ jobs:- name: Check if the input is valid hotfix branchshell: bashrun: |- if [[ ${{github.ref}} =~ ^refs/heads/hotfix-[0-9]+\.[0-9]+\.[0-9]+$ ]]; then- echo "::notice::${{github.ref}} is a valid branch."+ if [[ ${{github.ref}} =~ ^refs/heads/hotfix-[0-9]{4}\.[0-9]{2}\.[0-9]{2}.[0-9]+$ ]]; then+ echo "::notice::${{github.ref}} is a valid hotfix branch."else- echo "::error::${{github.ref}} is not a valid branch."+ echo "::error::${{github.ref}} is not a valid hotfix branch."exit 1fi@@ -56,11 +56,11 @@ jobs:local previous_hotfix_numberlocal next_tag- previous_hotfix_number="$(echo "${previous_tag}" | awk -F. '{ print $4 }')"+ previous_hotfix_number="$(echo "${previous_tag}" | awk -F. '{ print $4 }' | gsed -oE 's/([0-9]+)(-hotfix([0-9]+))?/\3/')"if [[ -z "${previous_hotfix_number}" ]]; then# Previous tag was not a hotfix tag- next_tag="${previous_tag}+hotfix.1"+ next_tag="${previous_tag}-hotfix1"else# Previous tag was a hotfix tag, increment hotfix numberlocal hotfix_number=$((previous_hotfix_number + 1))diff --git a/.github/workflows/release-nightly-version-reusable.yml b/.github/workflows/release-nightly-version-reusable.ymlindex accd8c12a9..f982a69989 100644--- a/.github/workflows/release-nightly-version-reusable.yml+++ b/.github/workflows/release-nightly-version-reusable.yml@@ -50,6 +50,11 @@ jobs:exit 1fi+ # Pulling latest changes in case pre-release steps push new commits+ - name: Pull allowed branch+ shell: bash+ run: git pull+- name: Install Rustuses: dtolnay/rust-toolchain@masterwith: