From d12c00aefd582a630eb35d4120cc4d8c84d4f79b Mon Sep 17 00:00:00 2001 From: fscarmen <62703343+fscarmen@users.noreply.github.com> Date: Tue, 13 Sep 2022 15:50:41 +0800 Subject: [PATCH] Create sync_project.yml --- .github/workflows/sync_project.yml | 48 ++++++++++++++++++++++++++++++ 1 file changed, 48 insertions(+) create mode 100644 .github/workflows/sync_project.yml diff --git a/.github/workflows/sync_project.yml b/.github/workflows/sync_project.yml new file mode 100644 index 0000000..35057e0 --- /dev/null +++ b/.github/workflows/sync_project.yml @@ -0,0 +1,48 @@ +name: 'GitHub Actions Mirror' + +on: + push: + branches: + - master //当有文件上传到这个分支开始部署 也有可能是main + schedule: + - cron: '0 16 * * *' //定时每天16点UTC + +jobs: +# mirror_to_gitee: +# runs-on: ubuntu-latest +# steps: +# - name: 'Checkout' +# uses: actions/checkout@v1 +# - name: 'Mirror to gitee' +# uses: pixta-dev/repository-mirroring-action@v1 +# with: +# target_repo_url: +# git@gitee.com:valetzx/valetzx.gitee.io.git //这里填gitee仓库ssh地址 +# ssh_private_key: +# ${{ secrets.GITEE_KEY }} +# +# mirror_to_bitbucket: +# runs-on: ubuntu-latest +# steps: +# - name: 'Checkout' +# uses: actions/checkout@v1 +# - name: 'Mirror to bitbucket' +# uses: pixta-dev/repository-mirroring-action@v1 +# with: +# target_repo_url: +# git@bitbucket.com:rwkgyg/cfwarp.git +# ssh_private_key: +# ${{ secrets.private_key }} + + mirror_to_gitlab: + runs-on: ubuntu-latest + steps: + - name: 'Checkout' + uses: actions/checkout@v1 + - name: 'Mirror to gitlab' + uses: pixta-dev/repository-mirroring-action@v1 + with: + target_repo_url: + git@gitlab.com:fscarmen/test.git //这里填gitlab仓库ssh地址 + ssh_private_key: + ${{ secrets.GITLAB_KEY }}