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

Add github action for backup

上级 8298c4e0
name: Backup Git repository
on:
push:
branches:
- master
jobs:
git-repo-backup:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@master
- name: Backup to Gitee
uses: jenkins-zh/git-backup-actions@v0.0.4
env:
GIT_DEPLOY_KEY: ${{ secrets.GIT_DEPLOY_KEY }}
TARGET_GIT: "git@gitee.com:jenkins-zh/jenkins-zh.git"
- name: Backup to CodeChina
uses: jenkins-zh/git-backup-actions@v0.0.4
env:
GIT_DEPLOY_KEY: ${{ secrets.GIT_DEPLOY_KEY }}
TARGET_GIT: "git@codechina.csdn.net:jenkins-zh/jenkins-zh.git"
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册