Skip to content
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
26 changes: 14 additions & 12 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,15 @@ on:
pull_request:
paths:
- '.github/workflows/prerelease.yml'
workflow_dispatch:
schedule:
# Run every day at 11pm (PST) - cron uses UTC times
- cron: '0 7 * * *'

jobs:
buildup_SpecsReleasing_repo:
# Don't run on private repo unless it is a PR.
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
env:
bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
local_repo: specstesting
Expand Down Expand Up @@ -44,7 +45,8 @@ jobs:

abtesting_quickstart:
# Don't run on private repo unless it is a PR.
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'

needs: buildup_SpecsReleasing_repo
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
Expand Down Expand Up @@ -78,7 +80,7 @@ jobs:

auth_quickstart:
# Don't run on private repo unless it is a PR.
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
needs: buildup_SpecsReleasing_repo
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
Expand Down Expand Up @@ -112,7 +114,7 @@ jobs:

crashlytics_quickstart:
# Don't run on private repo unless it is a PR.
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
needs: buildup_SpecsReleasing_repo
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
Expand Down Expand Up @@ -155,7 +157,7 @@ jobs:

database_quickstart:
# Don't run on private repo unless it is a PR.
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
needs: buildup_SpecsReleasing_repo
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
Expand Down Expand Up @@ -193,7 +195,7 @@ jobs:

dynamiclinks_quickstart:
# Don't run on private repo unless it is a PR.
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
needs: buildup_SpecsReleasing_repo
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
Expand Down Expand Up @@ -237,7 +239,7 @@ jobs:

firestore_quickstart:
# Don't run on private repo unless it is a PR.
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
needs: buildup_SpecsReleasing_repo
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
Expand Down Expand Up @@ -274,7 +276,7 @@ jobs:

functions_quickstart:
# Don't run on private repo unless it is a PR.
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
needs: buildup_SpecsReleasing_repo
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
Expand Down Expand Up @@ -316,7 +318,7 @@ jobs:

inappmessaging_quickstart:
# Don't run on private repo unless it is a PR.
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
needs: buildup_SpecsReleasing_repo
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
Expand Down Expand Up @@ -356,7 +358,7 @@ jobs:

messaging_quickstart:
# Don't run on private repo unless it is a PR.
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
needs: buildup_SpecsReleasing_repo
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
Expand Down Expand Up @@ -396,7 +398,7 @@ jobs:

remoteconfig_quickstart:
# Don't run on private repo unless it is a PR.
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
needs: buildup_SpecsReleasing_repo
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
Expand Down Expand Up @@ -430,7 +432,7 @@ jobs:

storage_quickstart:
# Don't run on private repo unless it is a PR.
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
needs: buildup_SpecsReleasing_repo
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
Expand Down
25 changes: 13 additions & 12 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,14 +5,15 @@ on:
paths:
- '.github/workflows/release.yml'
- 'scripts/create_spec_repo/*'
workflow_dispatch:
schedule:
# Run every day at 11pm (PST) - cron uses UTC times
- cron: '0 7 * * *'

jobs:
buildup_SpecsTesting_repo:
# Don't run on private repo unless it is a PR.
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
env:
bot_token_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
local_repo: specstesting
Expand Down Expand Up @@ -47,7 +48,7 @@ jobs:

abtesting_quickstart:
# Don't run on private repo unless it is a PR.
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
needs: buildup_SpecsTesting_repo
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
Expand Down Expand Up @@ -81,7 +82,7 @@ jobs:

auth_quickstart:
# Don't run on private repo unless it is a PR.
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
needs: buildup_SpecsTesting_repo
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
Expand Down Expand Up @@ -115,7 +116,7 @@ jobs:

crashlytics_quickstart:
# Don't run on private repo unless it is a PR.
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
needs: buildup_SpecsTesting_repo
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
Expand Down Expand Up @@ -158,7 +159,7 @@ jobs:

database_quickstart:
# Don't run on private repo unless it is a PR.
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
needs: buildup_SpecsTesting_repo
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
Expand Down Expand Up @@ -196,7 +197,7 @@ jobs:

dynamiclinks_quickstart:
# Don't run on private repo unless it is a PR.
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
needs: buildup_SpecsTesting_repo
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
Expand Down Expand Up @@ -240,7 +241,7 @@ jobs:

firestore_quickstart:
# Don't run on private repo unless it is a PR.
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
needs: buildup_SpecsTesting_repo
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
Expand Down Expand Up @@ -277,7 +278,7 @@ jobs:

functions_quickstart:
# Don't run on private repo unless it is a PR.
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
needs: buildup_SpecsTesting_repo
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
Expand Down Expand Up @@ -319,7 +320,7 @@ jobs:

inappmessaging_quickstart:
# Don't run on private repo unless it is a PR.
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
needs: buildup_SpecsTesting_repo
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
Expand Down Expand Up @@ -359,7 +360,7 @@ jobs:

messaging_quickstart:
# Don't run on private repo unless it is a PR.
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
needs: buildup_SpecsTesting_repo
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
Expand Down Expand Up @@ -399,7 +400,7 @@ jobs:

remoteconfig_quickstart:
# Don't run on private repo unless it is a PR.
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
needs: buildup_SpecsTesting_repo
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
Expand Down Expand Up @@ -433,7 +434,7 @@ jobs:

storage_quickstart:
# Don't run on private repo unless it is a PR.
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request'
if: github.repository != 'FirebasePrivate/firebase-ios-sdk' || github.event_name == 'pull_request' || github.event_name == 'workflow_dispatch'
needs: buildup_SpecsTesting_repo
env:
plist_secret: ${{ secrets.GHASecretsGPGPassphrase1 }}
Expand Down
9 changes: 8 additions & 1 deletion scripts/release_testing_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,14 @@ test_version=$(git tag -l --sort=-version:refname CocoaPods-*[0-9] | head -n 1 |
release_branch=$(git branch -r -l "origin/release-${test_version}")
if [ -z $release_branch ];then
echo "release-${test_version} branch does not exist in the sdk repo."
exit 1
# Get substring before the last ".", e.g. "release-7.0.0" -> "release-7.0"
test_version=${test_version%.*}
echo "search for release-${test_version} branch."
release_branch=$(git branch -r -l "origin/release-${test_version}")
if [ -z $release_branch ];then
echo "release-${test_version} branch does not exist in the sdk repo."
exit 1
fi
fi

# Get release branch, release-X.Y.Z.
Expand Down