Skip to content

Commit b3ca2f3

Browse files
authored
[Infra] Attempt to fix post-merge tagging in prerelease.yml (#13438)
1 parent cb3cc31 commit b3ca2f3

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

.github/workflows/prerelease.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -161,6 +161,8 @@ jobs:
161161
podspec_repo_branch: main
162162
steps:
163163
- uses: actions/checkout@v4
164+
with:
165+
fetch-depth: 0
164166
- name: Get token
165167
run: |
166168
scripts/decrypt_gha_secret.sh scripts/gha-encrypted/prerelease-testing-token.txt.gpg \

scripts/release_testing_setup.sh

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -31,16 +31,12 @@ if [ "$TESTINGMODE" = "release_testing" ]; then
3131
set -x
3232
cd "${local_sdk_repo_dir}"
3333
elif [ "$TESTINGMODE" = "prerelease_testing" ]; then
34-
set -x
3534
git fetch --tags --quiet origin main
3635
git checkout main
3736
fi
3837

3938
# The chunk below is to determine the latest version by searching
4039
# Get the latest released tag Cocoapods-X.Y.Z for release and prerelease testing, beta version will be excluded.
41-
test_version=$(git tag -l --sort=-version:refname CocoaPods-*[0-9] | head -n 1)
42-
test_version=$(git tag -l --sort=-version:refname 'CocoaPods-*[0-9]' | head -n 1)
43-
test_version=$(git tag -l --sort=-version:refname --merged main CocoaPods-*[0-9] | head -n 1)
4440
test_version=$(git tag -l --sort=-version:refname --merged main 'CocoaPods-*[0-9]' | head -n 1)
4541
git for-each-ref --sort=-creatordate --format '%(creatordate:short) %(refname:short)' refs/tags | head -n 3
4642
if [ -z "$test_version" ]; then

0 commit comments

Comments
 (0)