Skip to content

Commit

Permalink
Add backup action (#107)
Browse files Browse the repository at this point in the history
* Add backup action

* Fix the wrong target git repo
  • Loading branch information
LinuxSuRen committed Oct 1, 2019
1 parent 7b5ae6f commit cb747cf
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/backup.yaml
@@ -0,0 +1,17 @@
name: Backup Git Repo

on:
push:
branches:
- master

jobs:
git-repo-backup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: git-repo-backup
uses: jenkins-zh/git-backup-actions@v0.0.1
env:
GIT_DEPLOY_KEY: ${{ secrets.GIT_DEPLOY_KEY }}
TARGET_GIT: "git@gitee.com:jenkins-zh/localization-zh-cn-plugin.git"
5 changes: 5 additions & 0 deletions README.md
Expand Up @@ -21,3 +21,8 @@ If you are interested in localization, please check [Chinese Localization SIG](h
All Chinese characters will convert to ASCII. It's hard to read. So you could use [online tools](https://native2ascii.net/).

Everyone should follow the [translation specification](specification.md).

# Actions

We use [git-backup-actions](https://github.com/jenkins-zh/git-backup-actions/) to backup this repo into
[gitee](https://gitee.com/jenkins-zh/localization-zh-cn-plugin).
5 changes: 5 additions & 0 deletions README_zh_CN.md
Expand Up @@ -19,3 +19,8 @@
所有的中文字符都需要转为为 ASCII.这样难以阅读,你可以使用这个[在线工具](https://native2ascii.net/)进行快速地转化。

注意,每位贡献者都应该遵循[翻译规范](specification.md)

# Actions

我们使用 [git-backup-actions](https://github.com/jenkins-zh/git-backup-actions/) 来备份当前仓库到
[gitee](https://gitee.com/jenkins-zh/localization-zh-cn-plugin).

0 comments on commit cb747cf

Please sign in to comment.