Skip to content

Commit e2dfa09

Browse files
committed
chore(CI): Add upstream sync script
1 parent 6b0f033 commit e2dfa09

File tree

1 file changed

+33
-0
lines changed

1 file changed

+33
-0
lines changed

.github/workflows/sync.yaml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: todo
2+
3+
on:
4+
schedule:
5+
- cron: 0 0 * * *
6+
7+
jobs:
8+
cleanup:
9+
runs-on: ubuntu-latest
10+
11+
strategy:
12+
matrix:
13+
node-version: [12.x]
14+
15+
steps:
16+
- uses: actions/checkout@v1
17+
with:
18+
ref: master
19+
- name: Use Node.js ${{ matrix.node-version }}
20+
uses: actions/setup-node@v1
21+
if: steps.cache.outputs.cache-hit != 'true'
22+
with:
23+
node-version: ${{ matrix.node-version }}
24+
- name: Add upstream
25+
run: |
26+
git add remote upstream [email protected]:vuejs/docs-next.git
27+
- name: Pull upstream changes
28+
run: |
29+
git add remote upstream [email protected]:vuejs/docs-next.git
30+
- name: Sync it
31+
run: |
32+
git push origin master
33+

0 commit comments

Comments
 (0)