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(nightly): ignore cd-* tags when looking for the previous release (#14894)
Yashasvi Kapil186286a9bb18
diff --git a/.github/workflows/release-nightly-version-reusable.yml b/.github/workflows/release-nightly-version-reusable.ymlindex 758f7d60d2..8f1d0c56ac 100644--- a/.github/workflows/release-nightly-version-reusable.yml+++ b/.github/workflows/release-nightly-version-reusable.yml@@ -45,7 +45,9 @@ jobs:- name: Check if the latest commit is a tagshell: bashrun: |- if [[ -n "$(git tag --points-at HEAD)" ]]; then+ # `cd-*` tags are deployment markers a CD pipeline puts on merge commits;+ # they are not releases, so they never block or count towards one.+ if [[ -n "$(git tag --points-at HEAD | grep --invert-match '^cd-')" ]]; thenecho "::error::The latest commit on the branch is already a tag"exit 1fi@@ -76,10 +78,11 @@ jobs:CURRENT_UTC_DATE="$(date --utc '+%04Y.%02m.%02d')"# Check if any tags exist on the current branch which contain the current UTC date- if ! git tag --merged | grep --quiet "${CURRENT_UTC_DATE}"; then+ if ! git tag --merged | grep --invert-match '^cd-' | grep --quiet "${CURRENT_UTC_DATE}"; then# Search for date-like tags (no strict checking), sort and obtain previous tagPREVIOUS_TAG="$(git tag --merged \+ | grep --invert-match '^cd-' \| grep --extended-regexp '[0-9]{4}\.[0-9]{2}\.[0-9]{2}' \| sort --version-sort \| tail --lines 1@@ -93,6 +96,7 @@ jobs:# Some tags exist with current date, find out latest micro version numberPREVIOUS_TAG="$(git tag --merged \+ | grep --invert-match '^cd-' \| grep "${CURRENT_UTC_DATE}" \| sort --version-sort \| tail --lines 1