Skip to content

Commit 801bf4d

Browse files
authored
Make repo sync a pull operation (#6557)
The action was defined as a push operation before
1 parent 5628212 commit 801bf4d

File tree

1 file changed

+13
-9
lines changed

1 file changed

+13
-9
lines changed
Lines changed: 13 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,30 @@
11
name: Private Mirror Sync
22

3-
concurrency:
4-
group: ${{ github.workflow }}
5-
cancel-in-progress: true
6-
73
on:
8-
push:
9-
branches:
10-
- main
4+
workflow_dispatch:
5+
schedule:
6+
- cron: '0 2 * * *'
117

128
jobs:
139
sync:
14-
if: github.repository == 'firebase/firebase-android-sdk'
10+
if: github.repository == 'FirebasePrivate/firebase-android-sdk'
1511
runs-on: ubuntu-latest
1612
steps:
13+
- uses: actions/[email protected]
14+
with:
15+
repository: firebase/firebase-android-sdk
16+
ref: main
17+
fetch-depth: 0
18+
submodules: true
19+
1720
- uses: actions/[email protected]
1821
with:
1922
fetch-depth: 0
2023
submodules: true
2124
token: ${{ secrets.GOOGLE_OSS_BOT_TOKEN }}
22-
committer: google-oss-bot <[email protected]>
2325
- name: Force push HEAD to private repo main branch
2426
run: |
27+
git config --local user.name google-oss-bot
28+
git config --local user.email [email protected]
2529
git remote add mirror https://github.com/FirebasePrivate/firebase-android-sdk.git
2630
git push mirror HEAD:main --force --verbose

0 commit comments

Comments
 (0)