-
Notifications
You must be signed in to change notification settings - Fork 5
38 lines (30 loc) · 904 Bytes
/
update.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
name: Update Submodule
on:
schedule:
- cron: 0 0 * * *
push:
branches: [ master ]
jobs:
update_submodule:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_KEY }}
- name: Init submodule
run: git submodule init
- name: Update submodule
run: git submodule update --recursive
- name: Pull submodule
run: |
cd lens && git pull origin master && cd .. &&
cd vans && git pull origin master && cd ..
- name: Update root repo
run: |
git config user.email "[email protected]" &&
git config user.name "Zixuan Wang" &&
if [[ -n $(git status -s) ]]; then
git commit -am "Update LENS and VANS"
git push origin master
fi