File tree Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Expand file tree Collapse file tree 1 file changed +13
-9
lines changed Original file line number Diff line number Diff line change 1
1
name : Private Mirror Sync
2
2
3
- concurrency :
4
- group : ${{ github.workflow }}
5
- cancel-in-progress : true
6
-
7
3
on :
8
- push :
9
- branches :
10
- - main
4
+ workflow_dispatch :
5
+ schedule :
6
+ - cron : ' 0 2 * * * '
11
7
12
8
jobs :
13
9
sync :
14
- if : github.repository == 'firebase /firebase-android-sdk'
10
+ if : github.repository == 'FirebasePrivate /firebase-android-sdk'
15
11
runs-on : ubuntu-latest
16
12
steps :
13
+ - uses : actions/checkout@v4.1.1
14
+ with :
15
+ repository : firebase/firebase-android-sdk
16
+ ref : main
17
+ fetch-depth : 0
18
+ submodules : true
19
+
17
20
- uses : actions/checkout@v4.1.1
18
21
with :
19
22
fetch-depth : 0
20
23
submodules : true
21
24
token : ${{ secrets.GOOGLE_OSS_BOT_TOKEN }}
22
- committer : google-oss-bot <firebase-oss-bot@google.com>
23
25
- name : Force push HEAD to private repo main branch
24
26
run : |
27
+ git config --local user.name google-oss-bot
28
+ git config --local user.email firebase-oss-bot@google.com
25
29
git remote add mirror https://github.com/FirebasePrivate/firebase-android-sdk.git
26
30
git push mirror HEAD:main --force --verbose
You can’t perform that action at this time.
0 commit comments