Skip to content

Commit db875e0

Browse files
authored
ci(autoSync): add AutoSync action (#826)
* ci(autoSync): add `AutoSync` action * ci(autoSync): Support manual trigger
1 parent a24fdf7 commit db875e0

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

.github/workflows/autosync.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: autosync
2+
3+
on:
4+
schedule:
5+
- cron: '0 6 * * *'
6+
workflow_dispatch:
7+
8+
jobs:
9+
autosync:
10+
name: Auto Sync
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: vuejs-translations/ryu-cho@v1
14+
with:
15+
workflow-name: autosync
16+
access-token: ${{ secrets.AUTO_SYNC_ACCESS_TOKEN }}
17+
username: github-actions
18+
email: "action@github.com"
19+
20+
upstream-repo: https://github.com/vitest-dev/docs-cn.git
21+
upstream-repo-branch: dev
22+
23+
head-repo: https://github.com/vuejs/docs.git
24+
head-repo-branch: main
25+
path-starts-with: docs/
26+
27+
track-from: 4ed8b2f83a2f149734f3c5ecb6438309bd85a9e5
28+

0 commit comments

Comments
 (0)