Skip to content

Commit 39e133f

Browse files
authored
Merge pull request #151 from vuejs-jp/chore/sync-upstream
chore(CI): Add upstream sync script
2 parents 90d5a7c + bcebc36 commit 39e133f

File tree

1 file changed

+32
-0
lines changed

1 file changed

+32
-0
lines changed

.github/workflows/sync.yaml

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
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@v2
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 git@github.com:vuejs/docs-next.git
27+
- name: Pull upstream changes
28+
run: |
29+
git add remote upstream git@github.com:vuejs/docs-next.git
30+
- name: Sync it
31+
run: |
32+
git push origin master

0 commit comments

Comments
 (0)