mirror.yaml 783 B

1234567891011121314151617181920212223242526272829
  1. name: 'GitHub Actions Mirror'
  2. on: [push, delete]
  3. jobs:
  4. mirror_to_gitee:
  5. runs-on: ubuntu-latest
  6. steps:
  7. - name: 'Checkout'
  8. uses: actions/checkout@v1
  9. - name: 'Mirror to gitee'
  10. uses: pixta-dev/repository-mirroring-action@v1
  11. with:
  12. target_repo_url:
  13. git@gitee.com:go-admin-team/go-admin.git
  14. ssh_private_key:
  15. ${{ secrets.GITEE_KEY }}
  16. mirror_to_gitlab:
  17. runs-on: ubuntu-latest
  18. steps:
  19. - name: 'Checkout'
  20. uses: actions/checkout@v1
  21. - name: 'Mirror to gitlab'
  22. uses: pixta-dev/repository-mirroring-action@v1
  23. with:
  24. target_repo_url:
  25. git@gitlab.com:go-admin-team/go-admin.git
  26. ssh_private_key:
  27. ${{ secrets.GITLAB_KEY }}