2022-08-09 14:32:59 +08:00
|
|
|
name: 同步代码
|
2022-08-09 14:30:12 +08:00
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
2024-05-31 14:26:09 +08:00
|
|
|
branches: [ master,jdk17,jdk17-dev,dev ]
|
2022-08-09 14:30:12 +08:00
|
|
|
pull_request:
|
2024-05-31 14:26:09 +08:00
|
|
|
branches: [ master,jdk17,jdk17-dev,dev ]
|
2022-08-09 14:30:12 +08:00
|
|
|
|
|
|
|
jobs:
|
2024-06-10 09:05:42 +08:00
|
|
|
gitlink:
|
2022-08-09 14:30:12 +08:00
|
|
|
runs-on: ubuntu-latest
|
2024-06-10 09:05:42 +08:00
|
|
|
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.git"
|
|
|
|
gitee:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
container:
|
2024-06-10 09:06:21 +08:00
|
|
|
image: "centos:8"
|
2022-08-09 14:30:12 +08:00
|
|
|
steps:
|
2024-05-29 16:51:45 +08:00
|
|
|
- uses: wearerequired/git-mirror-action@master #同步至 gitee
|
|
|
|
env:
|
|
|
|
SSH_PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
|
|
|
|
with:
|
|
|
|
source-repo: "git@github.com:pig-mesh/pig.git"
|
|
|
|
destination-repo: "git@gitee.com:log4j/pig.git"
|