git-sync.yml 826 B

12345678910111213141516171819202122232425
  1. name: Github to Bitbucket sync
  2. # This action will sync the github repo with a backup bitbucket repo.
  3. # This will allow LinuxGSM to use Bitbucket as and alternative download if github fails.
  4. on:
  5. push:
  6. branches:
  7. - master
  8. - develop
  9. jobs:
  10. GitHub-to-Bitbucket:
  11. runs-on: ubuntu-latest
  12. steps:
  13. - name: webfactory/ssh-agent@v0.5.4
  14. uses: webfactory/ssh-agent@v0.5.4
  15. with:
  16. ssh-private-key: ${{ secrets.BITBUCKET_SECRET }}
  17. - name: wei/git-sync@v3.0.0
  18. uses: wei/git-sync@v3.0.0
  19. with:
  20. ssh_private_key: ${{ secrets.BITBUCKET_SECRET }}
  21. source_repo: "https://github.com/GameServerManagers/LinuxGSM"
  22. source_branch: "refs/heads/*"
  23. destination_repo: "git@bitbucket.org:GameServerManagers/linuxgsm.git"
  24. destination_branch: "refs/heads/*"