From c421661fa2034c66fb791e02a9d065ca2f01677e Mon Sep 17 00:00:00 2001 From: Nick Cooke <36927374+ncooke3@users.noreply.github.com> Date: Wed, 2 Oct 2024 11:40:12 -0400 Subject: [PATCH] [Infra] Release testing should grab latest tag on any branch (#13769) --- scripts/release_testing_setup.sh | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/scripts/release_testing_setup.sh b/scripts/release_testing_setup.sh index 010d558ca37..99206e37485 100755 --- a/scripts/release_testing_setup.sh +++ b/scripts/release_testing_setup.sh @@ -25,7 +25,10 @@ git fetch --tags --quiet origin main git checkout main # The chunk below is to determine the latest version by searching -# Get the latest released tag Cocoapods-X.Y.Z for release and prerelease testing, beta version will be excluded. +# Get the latest released tag Cocoapods-X.Y.Z for release and prerelease +# testing, beta version will be excluded. +# Note: If the nightly tag was not updated, check that the next release's tag +# is on the main branch. test_version=$(git tag -l --sort=-version:refname --merged main 'CocoaPods-*[0-9]' | head -n 1) if [ -z "$test_version" ]; then echo "Latest tag could not be found. Exiting." >&2