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] Attempt to fix post-merge tagging in prerelease.yml #13438

Merged
merged 1 commit into from
Jul 31, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 2 additions & 0 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,8 @@ jobs:
podspec_repo_branch: main
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- name: Get token
run: |
scripts/decrypt_gha_secret.sh scripts/gha-encrypted/prerelease-testing-token.txt.gpg \
Expand Down
4 changes: 0 additions & 4 deletions scripts/release_testing_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -31,16 +31,12 @@ if [ "$TESTINGMODE" = "release_testing" ]; then
set -x
cd "${local_sdk_repo_dir}"
elif [ "$TESTINGMODE" = "prerelease_testing" ]; then
set -x
git fetch --tags --quiet origin main
git checkout main
fi

# 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 CocoaPods-*[0-9] | head -n 1)
test_version=$(git tag -l --sort=-version:refname 'CocoaPods-*[0-9]' | head -n 1)
test_version=$(git tag -l --sort=-version:refname --merged main CocoaPods-*[0-9] | head -n 1)
test_version=$(git tag -l --sort=-version:refname --merged main 'CocoaPods-*[0-9]' | head -n 1)
git for-each-ref --sort=-creatordate --format '%(creatordate:short) %(refname:short)' refs/tags | head -n 3
if [ -z "$test_version" ]; then
Expand Down
Loading