mirror of
https://gitee.com/log4j/pig.git
synced 2024-12-23 13:03:42 +08:00
26 lines
717 B
YAML
26 lines
717 B
YAML
name: 同步代码
|
|
|
|
on:
|
|
push:
|
|
branches: [ master,dev ]
|
|
|
|
jobs:
|
|
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.git"
|
|
atomgit:
|
|
runs-on: ubuntu-latest
|
|
steps:
|
|
- uses: wearerequired/git-mirror-action@master #同步至 atomgit
|
|
env:
|
|
SSH_PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
|
|
with:
|
|
source-repo: "git@github.com:pig-mesh/pig.git"
|
|
destination-repo: "git@atomgit.com:log4j/pig.git"
|