File tree Expand file tree Collapse file tree 4 files changed +18
-8
lines changed
create_spec_repo/Sources/SpecRepoBuilder Expand file tree Collapse file tree 4 files changed +18
-8
lines changed Original file line number Diff line number Diff line change 17
17
env :
18
18
bot_token_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
19
19
local_repo : specstesting
20
+ # The SDK repo will be cloned to this dir and podspecs from
21
+ # 'podspec_repo_branch' of this repo will be validated and pushed to the
22
+ # testing repo.
20
23
local_sdk_repo_dir : /tmp/test/firebase-ios-sdk
24
+ podspec_repo_branch : master
21
25
runs-on : macOS-latest
22
26
steps :
23
27
- uses : actions/checkout@v2
30
34
- name : Update SpecsReleasing repo setup
31
35
run : |
32
36
ossbotaccess=`cat oss-bot-access.txt`
33
- BOT_TOKEN="${ossbotaccess}" test_version="${nightly_version}" sdk_version_config="${GITHUB_WORKSPACE}/scripts/create_spec_repo/RC_firebase_sdk.textproto" scripts/release_testing_setup.sh RC_testing
37
+ BOT_TOKEN="${ossbotaccess}" test_version="${nightly_version}" sdk_version_config="${GITHUB_WORKSPACE}/scripts/create_spec_repo/RC_firebase_sdk.textproto" local_sdk_repo_dir="${local_sdk_repo_dir}" podspec_repo_branch="${podspec_repo_branch}" scripts/release_testing_setup.sh RC_testing
34
38
- name : Update SpecsReleasing repo
35
39
run : |
36
40
botaccess=`cat bot-access.txt`
Original file line number Diff line number Diff line change 18
18
env :
19
19
bot_token_secret : ${{ secrets.GHASecretsGPGPassphrase1 }}
20
20
local_repo : specstesting
21
- nightly_version : " 7.5.0"
21
+ # The SDK repo will be cloned to this dir and podspecs from
22
+ # the latest release branch of this repo will be validated and pushed to
23
+ # the testing repo.
22
24
local_sdk_repo_dir : /tmp/test/firebase-ios-sdk
23
- podspec_repo_branch : master
24
25
runs-on : macOS-latest
25
26
steps :
26
27
- uses : actions/checkout@v2
33
34
- name : Update SpecsTesting repo setup
34
35
run : |
35
36
ossbotaccess=`cat oss-bot-access.txt`
36
- BOT_TOKEN="${ossbotaccess}" test_version="${nightly_version}" scripts/release_testing_setup.sh nightly_testing
37
+ BOT_TOKEN="${ossbotaccess}" scripts/release_testing_setup.sh nightly_testing
37
38
- name : Update SpecsTesting repo
38
39
run : |
39
40
botaccess=`cat bot-access.txt`
Original file line number Diff line number Diff line change @@ -24,7 +24,6 @@ extension Constants {
24
24
static let dependencyLineSeparators = CharacterSet ( charactersIn: " ,/ " )
25
25
static let podSources = [
26
26
" https://${BOT_TOKEN}@github.com/FirebasePrivate/SpecsTesting " ,
27
- " https://github.com/firebase/SpecsDev.git " ,
28
27
" https://github.com/firebase/SpecsStaging.git " ,
29
28
" https://cdn.cocoapods.org/ " ,
30
29
]
Original file line number Diff line number Diff line change 12
12
# See the License for the specific language governing permissions and
13
13
# limitations under the License.
14
14
15
+ # This script will `git clone` the SDK repo to local and look for the latest
16
+ # release branch
15
17
set -xe
16
18
17
19
TESTINGMODE=${1-}
23
25
mkdir -p " ${local_sdk_repo_dir} "
24
26
echo " git clone ${podspec_repo_branch} from github.com/firebase/firebase-ios-sdk.git to ${local_sdk_repo_dir} "
25
27
set +x
28
+ # Using token here to update tags later.
26
29
git clone -q https://" ${BOT_TOKEN} " @github.com/firebase/firebase-ios-sdk.git " ${local_sdk_repo_dir} "
27
30
set -x
28
31
29
32
cd " ${local_sdk_repo_dir} "
30
- # This is to search Cocoapods-X.Y.Z tags from all branches of the sdk repo and test_version is X.Y.Z
33
+ # The chunk below is to determine the latest version by searching
34
+ # Cocoapods-X.Y.Z tags from all branches of the sdk repo and test_version is X.Y.Z
31
35
test_version=$( git tag -l --sort=-version:refname CocoaPods-* [0-9] | head -n 1 | sed -n ' s/CocoaPods-//p' )
32
36
# Check if release-X.Y.Z branch exists in the remote repo.
33
37
release_branch=$( git branch -r -l " origin/release-${test_version} " )
@@ -43,8 +47,10 @@ if [ -z $release_branch ];then
43
47
fi
44
48
fi
45
49
46
- # Get release branch, release-X.Y.Z.
47
- podspec_repo_branch=$( echo $release_branch | sed -n ' s/\s*origin\///p' )
50
+ if [ -z $podspec_repo_branch ]; then
51
+ # Get release branch, release-X.Y.Z.
52
+ podspec_repo_branch=$( echo $release_branch | sed -n ' s/\s*origin\///p' )
53
+ fi
48
54
49
55
git config --global user.email
" [email protected] "
50
56
git config --global user.name " google-oss-bot"
You can’t perform that action at this time.
0 commit comments