File tree Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Expand file tree Collapse file tree 2 files changed +2
-4
lines changed Original file line number Diff line number Diff line change @@ -161,6 +161,8 @@ jobs:
161
161
podspec_repo_branch : main
162
162
steps :
163
163
- uses : actions/checkout@v4
164
+ with :
165
+ fetch-depth : 0
164
166
- name : Get token
165
167
run : |
166
168
scripts/decrypt_gha_secret.sh scripts/gha-encrypted/prerelease-testing-token.txt.gpg \
Original file line number Diff line number Diff line change @@ -31,16 +31,12 @@ if [ "$TESTINGMODE" = "release_testing" ]; then
31
31
set -x
32
32
cd " ${local_sdk_repo_dir} "
33
33
elif [ " $TESTINGMODE " = " prerelease_testing" ]; then
34
- set -x
35
34
git fetch --tags --quiet origin main
36
35
git checkout main
37
36
fi
38
37
39
38
# The chunk below is to determine the latest version by searching
40
39
# 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)
44
40
test_version=$( git tag -l --sort=-version:refname --merged main ' CocoaPods-*[0-9]' | head -n 1)
45
41
git for-each-ref --sort=-creatordate --format ' %(creatordate:short) %(refname:short)' refs/tags | head -n 3
46
42
if [ -z " $test_version " ]; then
You can’t perform that action at this time.
0 commit comments