Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Infra] Release testing should grab latest tag on any branch #13769

Merged
merged 3 commits into from
Oct 2, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 6 additions & 2 deletions scripts/release_testing_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,12 @@ 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.
test_version=$(git tag -l --sort=-version:refname --merged main 'CocoaPods-*[0-9]' | head -n 1)
# Get the latest released tag Cocoapods-X.Y.Z for release and prerelease
# testing, beta version will be excluded.
# Note: If a long running release branch's tags are keeping the next tagged
# release on main from being tested, add `--merged main` to the below git tag
# command. Doing so will exclude tags that don't exist on main.
test_version=$(git tag -l --sort=-version:refname 'CocoaPods-*[0-9]' | head -n 1)
ncooke3 marked this conversation as resolved.
Show resolved Hide resolved
if [ -z "$test_version" ]; then
echo "Latest tag could not be found. Exiting." >&2
exit 1
Expand Down
Loading