sync_project.yml 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. name: GitHub Actions Mirror
  2. on:
  3. workflow_dispatch:
  4. # push:
  5. # branches:
  6. # - master
  7. schedule:
  8. - cron: '20 20 * * *'
  9. jobs:
  10. mirror_to_gitlab:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - name: 'Checkout'
  14. uses: actions/[email protected]
  15. with:
  16. fetch-depth: 0
  17. - name: 'Mirror to gitlab'
  18. uses: pixta-dev/[email protected]
  19. with:
  20. target_repo_url:
  21. [email protected]:${{ github.repository }}.git
  22. ssh_private_key:
  23. ${{ secrets.PRIVATE_KEY }}
  24. mirror_to_gitlab_project:
  25. runs-on: ubuntu-latest
  26. steps:
  27. - name: 'Checkout'
  28. uses: actions/[email protected]
  29. with:
  30. fetch-depth: 0
  31. - name: 'Mirror to gitlab'
  32. uses: pixta-dev/[email protected]
  33. with:
  34. target_repo_url:
  35. [email protected]:ProjectWARP/warp-script.git
  36. ssh_private_key:
  37. ${{ secrets.PRIVATE_KEY }}
  38. mirror_to_bitbucket:
  39. runs-on: ubuntu-latest
  40. steps:
  41. - name: 'Checkout'
  42. uses: actions/[email protected]
  43. with:
  44. fetch-depth: 0
  45. - name: 'Mirror to bitbucket'
  46. uses: pixta-dev/[email protected]
  47. with:
  48. target_repo_url:
  49. [email protected]:${{ github.repository }}.git
  50. ssh_private_key:
  51. ${{ secrets.PRIVATE_KEY }}