未验证 提交 d59c0f4a 编写于 作者: LinuxSuRen's avatar LinuxSuRen 提交者: GitHub

Add support backup git repo to CodeChina (#7)

* Add support backup git repo to CodeChina

* Try to use branch fix-git-flow
上级 a418572c
......@@ -4,14 +4,23 @@ on:
push:
branches:
- master
pull_request:
branches:
- master
jobs:
git-repo-backup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: backup
uses: jenkins-zh/git-backup-actions@v0.0.3
- name: Backup to gitee
uses: jenkins-zh/git-backup-actions@fix-git-flow
env:
GIT_DEPLOY_KEY: ${{ secrets.GIT_DEPLOY_KEY }}
TARGET_GIT: "git@gitee.com:jenkins-zh/jenkins-open-tutorial.git"
- name: Backup to CodeChina
uses: jenkins-zh/git-backup-actions@fix-git-flow
env:
GIT_DEPLOY_KEY: ${{ secrets.GIT_DEPLOY_KEY }}
TARGET_GIT: "git@codechina.csdn.net:jenkins-zh/jenkins-open-tutorial.git"
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册