git-sync.yml 777 B

12345678910111213141516171819202122
  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: push
  5. jobs:
  6. repo-sync:
  7. runs-on: ubuntu-latest
  8. steps:
  9. - name: ssh
  10. uses: webfactory/ssh-agent@v0.2.0
  11. with:
  12. ssh-private-key: ${{ secrets.BITBUCKET_SECRET }}
  13. ssh_private_key: ${{ secrets.BITBUCKET_SECRET }}
  14. - name: repo-sync
  15. uses: wei/git-sync@v2
  16. with:
  17. source_repo: "https://github.com/GameServerManagers/LinuxGSM"
  18. source_branch: "refs/heads/*"
  19. destination_repo: "git@bitbucket.org:dgibbs64/linuxgsm.git"
  20. destination_branch: "refs/heads/*"
  21. ssh_private_key: ${{ secrets.BITBUCKET_SECRET }}