pig-ui/.github/workflows/mirror.yml

39 lines
1.1 KiB
YAML
Raw Normal View History

name: 同步代码
on:
push:
2024-08-27 15:46:58 +08:00
branches: [ master,dev ]
pull_request:
2024-08-27 15:46:58 +08:00
branches: [ master,dev ]
jobs:
2024-08-27 15:42:34 +08:00
gitcode:
runs-on: ubuntu-latest
2024-08-27 15:42:34 +08:00
steps:
- uses: wearerequired/git-mirror-action@master #同步至 gitcode
env:
SSH_PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
with:
source-repo: "git@github.com:pig-mesh/pig.git"
destination-repo: "git@gitcode.com:pig-mesh/pig-ui.git"
gitlink:
runs-on: ubuntu-latest
steps:
- uses: wearerequired/git-mirror-action@master #同步至 gitlink
env:
SSH_PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
with:
source-repo: "git@github.com:pig-mesh/pig.git"
destination-repo: "git@code.gitlink.org.cn:lengleng/pig-ui.git"
gitee:
runs-on: ubuntu-latest
container:
image: "centos:8"
steps:
- uses: wearerequired/git-mirror-action@master #同步至 gitee
env:
SSH_PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
with:
2024-08-27 15:42:34 +08:00
source-repo: "git@github.com:pig-mesh/pig.git"
destination-repo: "git@gitee.com:log4j/pig-ui.git"