Skip to content
Merged
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
22 changes: 13 additions & 9 deletions .github/workflows/private-mirror-sync.yml
Original file line number Diff line number Diff line change
@@ -1,26 +1,30 @@
name: Private Mirror Sync

concurrency:
group: ${{ github.workflow }}
cancel-in-progress: true

on:
push:
branches:
- main
workflow_dispatch:
schedule:
- cron: '0 2 * * *'

jobs:
sync:
if: github.repository == 'firebase/firebase-android-sdk'
if: github.repository == 'FirebasePrivate/firebase-android-sdk'
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
with:
repository: firebase/firebase-android-sdk
ref: main
fetch-depth: 0
submodules: true

- uses: actions/[email protected]
with:
fetch-depth: 0
submodules: true
token: ${{ secrets.GOOGLE_OSS_BOT_TOKEN }}
committer: google-oss-bot <[email protected]>
- name: Force push HEAD to private repo main branch
run: |
git config --local user.name google-oss-bot
git config --local user.email [email protected]
git remote add mirror https://github.com/FirebasePrivate/firebase-android-sdk.git
git push mirror HEAD:main --force --verbose
Loading