Skip to content

Commit

Permalink
ci(autosync): add action for pull upstream (vuejs#122)
Browse files Browse the repository at this point in the history
* ci(autosync): add action for pull upstream
Commitor: initdc

* Update autosync.yml

Co-authored-by: wxsm <wxsms@foxmail.com>
  • Loading branch information
initdc and wxsms authored Mar 10, 2022
1 parent ab1c06d commit 048a3cc
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .github/workflows/autosync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
name: Auto Sync

on:
schedule:
- cron: '0 0 * * *' # At 00:00. https://crontab.guru/
workflow_dispatch: # on button click

jobs:
sync:
runs-on: ubuntu-latest
steps:
- uses: TobKed/github-forks-sync-action@master
with:
github_token: ${{ secrets.UPSTREAM_SYNC_TOKEN }}
upstream_repository: vuejs/docs
upstream_branch: main
target_repository: vuejs-translations/docs-zh-cn
target_branch: upstream
force: false
tags: false

0 comments on commit 048a3cc

Please sign in to comment.