Skip to content

Commit 048a3cc

Browse files
initdcwxsms
andauthored
ci(autosync): add action for pull upstream (vuejs#122)
* ci(autosync): add action for pull upstream Commitor: initdc * Update autosync.yml Co-authored-by: wxsm <[email protected]>
1 parent ab1c06d commit 048a3cc

File tree

1 file changed

+20
-0
lines changed

1 file changed

+20
-0
lines changed

.github/workflows/autosync.yml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
name: Auto Sync
2+
3+
on:
4+
schedule:
5+
- cron: '0 0 * * *' # At 00:00. https://crontab.guru/
6+
workflow_dispatch: # on button click
7+
8+
jobs:
9+
sync:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: TobKed/github-forks-sync-action@master
13+
with:
14+
github_token: ${{ secrets.UPSTREAM_SYNC_TOKEN }}
15+
upstream_repository: vuejs/docs
16+
upstream_branch: main
17+
target_repository: vuejs-translations/docs-zh-cn
18+
target_branch: upstream
19+
force: false
20+
tags: false

0 commit comments

Comments
 (0)