mirror.yml 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. # This is a basic workflow that is manually triggered
  2. name: Mirror repo
  3. on: [push]
  4. jobs:
  5. mirror:
  6. runs-on: ubuntu-latest
  7. steps:
  8. - name: mirror in gitlab
  9. uses: actions/checkout@v4
  10. with:
  11. fetch-depth: 0
  12. - uses: yesolutions/mirror-action@master
  13. with:
  14. REMOTE: 'https://gitlab.com/anas-elgarhy/alquran-cloud-api.git'
  15. GIT_USERNAME: Anas-Elgarhy
  16. GIT_PASSWORD: ${{ secrets.GITLAP_TOKEN }}
  17. - name: mirror in bitbucket
  18. uses: actions/checkout@v4
  19. with:
  20. fetch-depth: 0
  21. - uses: yesolutions/mirror-action@master
  22. with:
  23. REMOTE: 'https://anas-elgarhy@bitbucket.org/anas_elgarhy/alquran-cloud-api.git'
  24. REMOTE_NAME: bitbucket
  25. GIT_USERNAME: anas_elgarhy
  26. GIT_PASSWORD: ${{ secrets.BITBUCKET_TOKEN }}
  27. - name: mirror in codeberg
  28. uses: actions/checkout@v4
  29. with:
  30. fetch-depth: 0
  31. - uses: yesolutions/mirror-action@master
  32. with:
  33. REMOTE: 'https://codeberg.org/anas-elgarhy/alquran-cloud-api.git'
  34. REMOTE_NAME: codeberg
  35. GIT_USERNAME: anas-elgarhy
  36. GIT_PASSWORD: ${{ secrets.CODEBERG_TOKEN }}