Skip to content

Commit 9fbbaee

Browse files
authored
[Infra] Migrate release.yml to use Firebase/SpecsReleasing repo (#13213)
1 parent d564acc commit 9fbbaee

File tree

5 files changed

+28
-32
lines changed

5 files changed

+28
-32
lines changed

.github/workflows/release.yml

+26-26
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ jobs:
2626
# 'podspec_repo_branch' of this repo will be validated and pushed to the
2727
# testing repo.
2828
local_sdk_repo_dir: /tmp/test/firebase-ios-sdk
29-
local_repo: specstesting
29+
local_repo: specsreleasing
3030
podspec_repo_branch: main
3131
outputs:
3232
matrix: ${{ steps.generate_matrix.outputs.matrix }}
@@ -43,7 +43,7 @@ jobs:
4343
run: |
4444
scripts/decrypt_gha_secret.sh scripts/gha-encrypted/release-testing-token.txt.gpg \
4545
bot-access.txt "$bot_token_secret"
46-
- name: Update SpecsTesting repo setup
46+
- name: Update SpecsReleasing repo setup
4747
run: |
4848
botaccess=`cat bot-access.txt`
4949
BOT_TOKEN="${botaccess}" test_version="${nightly_version}" \
@@ -54,7 +54,7 @@ jobs:
5454
- name: Clean spec repo
5555
run: |
5656
botaccess=`cat bot-access.txt`
57-
git clone --quiet https://"$botaccess"@github.com/FirebasePrivate/SpecsTesting.git "${local_repo}"
57+
git clone --quiet https://"$botaccess"@github.com/Firebase/SpecsReleasing.git "${local_repo}"
5858
cd "${local_repo}"
5959
# Remove all unhidden dirs, i.e. all podspec dir from the spec repo.
6060
rm -Rf -- */
@@ -72,14 +72,14 @@ jobs:
7272
path: |
7373
${{ env.local_sdk_repo_dir }}/*.podspec
7474
${{ env.local_sdk_repo_dir }}/*.podspec.json
75-
buildup_SpecsTesting_repo_FirebaseCore:
75+
buildup_SpecsReleasing_repo_FirebaseCore:
7676
needs: specs_checking
7777
# Don't run on private repo unless it is a PR.
7878
if: github.repository == 'Firebase/firebase-ios-sdk'
7979
runs-on: macos-14
8080
env:
8181
bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
82-
local_repo: specstesting
82+
local_repo: specsreleasing
8383
local_sdk_repo_dir: /tmp/test/firebase-ios-sdk
8484
targeted_pod: FirebaseCore
8585
steps:
@@ -92,25 +92,25 @@ jobs:
9292
run: |
9393
scripts/decrypt_gha_secret.sh scripts/gha-encrypted/release-testing-token.txt.gpg \
9494
bot-access.txt "$bot_token_secret"
95-
- name: Update SpecsTesting repo
95+
- name: Update SpecsReleasing repo
9696
run: |
9797
botaccess=`cat bot-access.txt`
9898
cd scripts/create_spec_repo/
9999
swift build
100-
pod repo add --silent "${local_repo}" https://"$botaccess"@github.com/FirebasePrivate/SpecsTesting.git
100+
pod repo add --silent "${local_repo}" https://"$botaccess"@github.com/Firebase/SpecsReleasing.git
101101
BOT_TOKEN="${botaccess}" ${GITHUB_WORKSPACE}/scripts/third_party/travis/retry.sh .build/debug/spec-repo-builder \
102102
--sdk-repo "${local_sdk_repo_dir}" \
103103
--local-spec-repo-name "${local_repo}" \
104-
--pod-sources 'https://${BOT_TOKEN}@github.com/FirebasePrivate/SpecsTesting' "https://github.com/firebase/SpecsStaging.git" "https://github.com/CocoaPods/Specs.git" \
104+
--pod-sources 'https://github.com/Firebase/SpecsReleasing' "https://github.com/firebase/SpecsStaging.git" "https://github.com/CocoaPods/Specs.git" \
105105
--include-pods "${targeted_pod}" --keep-repo
106106
- name: Clean Artifacts
107107
if: ${{ always() }}
108108
run: |
109109
pod repo remove "${local_repo}"
110110
rm -rf bot-access.txt
111111
112-
buildup_SpecsTesting_repo:
113-
needs: [buildup_SpecsTesting_repo_FirebaseCore, specs_checking]
112+
buildup_SpecsReleasing_repo:
113+
needs: [buildup_SpecsReleasing_repo_FirebaseCore, specs_checking]
114114
# Don't run on private repo unless it is a PR.
115115
if: github.repository == 'Firebase/firebase-ios-sdk'
116116
runs-on: macos-14
@@ -119,7 +119,7 @@ jobs:
119119
matrix: ${{fromJson(needs.specs_checking.outputs.matrix)}}
120120
env:
121121
bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
122-
local_repo: specstesting
122+
local_repo: specsreleasing
123123
local_sdk_repo_dir: /tmp/test/firebase-ios-sdk
124124
targeted_pod: ${{ matrix.podspec }}
125125
steps:
@@ -132,19 +132,19 @@ jobs:
132132
run: |
133133
scripts/decrypt_gha_secret.sh scripts/gha-encrypted/release-testing-token.txt.gpg \
134134
bot-access.txt "$bot_token_secret"
135-
- name: Update SpecsTesting repo
135+
- name: Update SpecsReleasing repo
136136
run: |
137137
[[ ${{ matrix.allowwarnings }} == true ]] && ALLOWWARNINGS=true
138138
botaccess=`cat bot-access.txt`
139139
cd scripts/create_spec_repo/
140140
swift build
141-
pod repo add --silent "${local_repo}" https://"$botaccess"@github.com/FirebasePrivate/SpecsTesting.git
141+
pod repo add --silent "${local_repo}" https://"$botaccess"@github.com/Firebase/SpecsReleasing.git
142142
# ${ALLOWWARNINGS:+--allow-warnings} will add --allow-warnings to the
143143
# command if ${ALLOWWARNINGS} is not null.
144144
BOT_TOKEN="${botaccess}" ${GITHUB_WORKSPACE}/scripts/third_party/travis/retry.sh .build/debug/spec-repo-builder \
145145
--sdk-repo "${local_sdk_repo_dir}" \
146146
--local-spec-repo-name "${local_repo}" \
147-
--pod-sources 'https://${BOT_TOKEN}@github.com/FirebasePrivate/SpecsTesting' "https://github.com/firebase/SpecsStaging.git" "https://github.com/CocoaPods/Specs.git" \
147+
--pod-sources 'https://github.com/Firebase/SpecsReleasing' "https://github.com/firebase/SpecsStaging.git" "https://github.com/CocoaPods/Specs.git" \
148148
--include-pods "${targeted_pod}" \
149149
--keep-repo ${ALLOWWARNINGS:+--allow-warnings}
150150
- name: Clean Artifacts
@@ -156,7 +156,7 @@ jobs:
156156
abtesting_quickstart:
157157
# Don't run on private repo unless it is a PR.
158158
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
159-
needs: buildup_SpecsTesting_repo
159+
needs: buildup_SpecsReleasing_repo
160160
env:
161161
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
162162
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
@@ -195,7 +195,7 @@ jobs:
195195
auth_quickstart:
196196
# Don't run on private repo unless it is a PR.
197197
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
198-
needs: buildup_SpecsTesting_repo
198+
needs: buildup_SpecsReleasing_repo
199199
env:
200200
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
201201
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
@@ -228,7 +228,7 @@ jobs:
228228
crashlytics_quickstart:
229229
# Don't run on private repo unless it is a PR.
230230
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
231-
needs: buildup_SpecsTesting_repo
231+
needs: buildup_SpecsReleasing_repo
232232
env:
233233
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
234234
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
@@ -278,7 +278,7 @@ jobs:
278278
database_quickstart:
279279
# Don't run on private repo unless it is a PR.
280280
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
281-
needs: buildup_SpecsTesting_repo
281+
needs: buildup_SpecsReleasing_repo
282282
env:
283283
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
284284
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
@@ -315,7 +315,7 @@ jobs:
315315
dynamiclinks_quickstart:
316316
# Don't run on private repo unless it is a PR.
317317
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
318-
needs: buildup_SpecsTesting_repo
318+
needs: buildup_SpecsReleasing_repo
319319
env:
320320
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
321321
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
@@ -358,7 +358,7 @@ jobs:
358358
firestore_quickstart:
359359
# Don't run on private repo unless it is a PR.
360360
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
361-
needs: buildup_SpecsTesting_repo
361+
needs: buildup_SpecsReleasing_repo
362362
env:
363363
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
364364
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
@@ -395,7 +395,7 @@ jobs:
395395
# functions_quickstart:
396396
# # Don't run on private repo unless it is a PR.
397397
# if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
398-
# needs: buildup_SpecsTesting_repo
398+
# needs: buildup_SpecsReleasing_repo
399399
# env:
400400
# plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
401401
# signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
@@ -437,7 +437,7 @@ jobs:
437437
inappmessaging_quickstart:
438438
# Don't run on private repo unless it is a PR.
439439
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
440-
needs: buildup_SpecsTesting_repo
440+
needs: buildup_SpecsReleasing_repo
441441
env:
442442
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
443443
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
@@ -476,7 +476,7 @@ jobs:
476476
messaging_quickstart:
477477
# Don't run on private repo unless it is a PR.
478478
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
479-
needs: buildup_SpecsTesting_repo
479+
needs: buildup_SpecsReleasing_repo
480480
env:
481481
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
482482
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
@@ -515,7 +515,7 @@ jobs:
515515
remoteconfig_quickstart:
516516
# Don't run on private repo unless it is a PR.
517517
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
518-
needs: buildup_SpecsTesting_repo
518+
needs: buildup_SpecsReleasing_repo
519519
env:
520520
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
521521
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
@@ -548,7 +548,7 @@ jobs:
548548
storage_quickstart:
549549
# Don't run on private repo unless it is a PR.
550550
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
551-
needs: buildup_SpecsTesting_repo
551+
needs: buildup_SpecsReleasing_repo
552552
env:
553553
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
554554
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
@@ -586,7 +586,7 @@ jobs:
586586
performance_quickstart:
587587
# Don't run on private repo unless it is a PR.
588588
if: (github.repository == 'Firebase/firebase-ios-sdk' && github.event_name == 'schedule') || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
589-
needs: buildup_SpecsTesting_repo
589+
needs: buildup_SpecsReleasing_repo
590590
env:
591591
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
592592
signin_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}

scripts/create_spec_repo/Sources/SpecRepoBuilder/main.swift

+1-1
Original file line numberDiff line numberDiff line change
@@ -140,7 +140,7 @@ struct SpecRepoBuilder: ParsableCommand {
140140
var excludePods: [String] = []
141141

142142
@Option(help: "GitHub Account Name.")
143-
var githubAccount: String = "FirebasePrivate"
143+
var githubAccount: String = "Firebase"
144144

145145
@Option(help: "GitHub Repo Name.")
146146
var sdkRepoName: String = "SpecsTesting"
Binary file not shown.

scripts/remove_data.sh

-4
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,4 @@ if [[ ! -z "$LEGACY" ]]; then
2222
DIR="${SDK}/Legacy${SDK}Quickstart"
2323
fi
2424

25-
# By default, remove potential secrets used in specs repo URLs.
26-
sed -i "" "s/https:\/\/.*@github.com\/FirebasePrivate\/SpecsTesting.git/https:\/\/github.com\/FirebasePrivate\/SpecsTesting.git/g" quickstart-ios/"${DIR}"/Podfile quickstart-ios/"${DIR}"/Podfile.lock
27-
sed -i "" "s/https:\/\/.*@github.com\/FirebasePrivate\/SpecsReleasing.git/https:\/\/github.com\/FirebasePrivate\/SpecsReleasing.git/g" quickstart-ios/"${DIR}"/Podfile quickstart-ios/"${DIR}"/Podfile.lock
28-
2925
rm -f quickstart-ios/"${DIR}"/GoogleService-Info.plist

scripts/setup_quickstart.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ if check_secrets || [[ ${SAMPLE} == "installations" ]]; then
5353
$scripts_dir/localize_podfile.swift "$WORKSPACE_DIR"/Podfile "$RELEASE_TESTING"
5454
if [ "$RELEASE_TESTING" == "nightly_release_testing" ]; then
5555
set +x
56-
sed -i "" '1i\'$'\n'"source 'https://${BOT_TOKEN}@github.com/FirebasePrivate/SpecsTesting.git'"$'\n' "$PODFILE"
56+
sed -i "" '1i\'$'\n'"source 'https://github.com/Firebase/SpecsReleasing.git'"$'\n' "$PODFILE"
5757
set -x
5858
echo "Source of Podfile for nightly release testing is updated."
5959
fi

0 commit comments

Comments
 (0)