Skip to content

Commit

Permalink
ci: add sync ci (#210)
Browse files Browse the repository at this point in the history
  • Loading branch information
kermanx authored Jul 10, 2024
1 parent 570bc96 commit 983948b
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/pull_request_template.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
### 问题描述

- [ ] 我对翻译内容的改动不包含基于英文原版的扩展、删减或演绎 (如有,请移步至[主仓库](https://github.com/slidevjs/slidev))
21 changes: 21 additions & 0 deletions .github/workflows/autosync.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Ported from https://github.com/vuejs-translations/docs-zh-cn/blob/main/.github/workflows/autosync.yml
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.GITHUB_TOKEN }}
upstream_repository: slidevjs/docs
upstream_branch: main
target_repository: slidevjs/docs-cn
target_branch: upstream
force: false
tags: false

0 comments on commit 983948b

Please sign in to comment.