mirror of https://gitlab.com/fscarmen/test.git
parent
609cee96f5
commit
d12c00aefd
@ -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 }} |
||||
Loading…
Reference in new issue