mirror.yml 845 B

1234567891011121314151617181920212223242526272829
  1. name: 同步代码
  2. on:
  3. push:
  4. branches: [ master,jdk17,jdk17-dev,dev ]
  5. pull_request:
  6. branches: [ master,jdk17,jdk17-dev,dev ]
  7. jobs:
  8. gitlink:
  9. runs-on: ubuntu-latest
  10. steps:
  11. - uses: wearerequired/git-mirror-action@master #同步至 gitlink
  12. env:
  13. SSH_PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
  14. with:
  15. source-repo: "git@github.com:lttcai-mesh/lttcai.git"
  16. destination-repo: "git@code.gitlink.org.cn:lengleng/lttcai.git"
  17. gitee:
  18. runs-on: ubuntu-latest
  19. container:
  20. image: "centos:8"
  21. steps:
  22. - uses: wearerequired/git-mirror-action@master #同步至 gitee
  23. env:
  24. SSH_PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
  25. with:
  26. source-repo: "git@github.com:lttcai-mesh/lttcai.git"
  27. destination-repo: "git@gitee.com:log4j/lttcai.git"