lgsm local mirror
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

22 lines
797 B

name: Github to Bitbucket sync
# This action will sync the github repo with a backup bitbucket repo.
# This will allow LinuxGSM to use Bitbucket as and alternative download if github fails.
on: push
jobs:
repo-sync:
runs-on: ubuntu-latest
steps:
- name: ssh
uses: webfactory/ssh-agent@v0.2.0
with:
ssh-private-key: ${{ secrets.BITBUCKET_SECRET }}
ssh_private_key: ${{ secrets.BITBUCKET_SECRET }}
- name: repo-sync
uses: wei/git-sync@v2
with:
source_repo: "https://github.com/GameServerManagers/Game-Server-Configs"
source_branch: "master"
destination_repo: "git@bitbucket.org:GameServerManagers/game-server-configs.git"
destination_branch: "master"
ssh_private_key: ${{ secrets.BITBUCKET_SECRET }}