name: 同步代码 on: push: branches: [ master,jdk17,jdk17-dev,dev ] pull_request: branches: [ master,jdk17,jdk17-dev,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:lttcai-mesh/lttcai.git" destination-repo: "git@code.gitlink.org.cn:lengleng/lttcai.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: source-repo: "git@github.com:lttcai-mesh/lttcai.git" destination-repo: "git@gitee.com:log4j/lttcai.git"