Skip to content

Commit

Permalink
Review
Browse files Browse the repository at this point in the history
  • Loading branch information
ncooke3 authored Oct 2, 2024
1 parent 5ea2a69 commit 400bd87
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions scripts/release_testing_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -27,10 +27,10 @@ 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.
# 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)
# 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
exit 1
Expand Down

0 comments on commit 400bd87

Please sign in to comment.