forked from GameServerManagers/LinuxGSM
-
Notifications
You must be signed in to change notification settings - Fork 0
25 lines (24 loc) · 850 Bytes
/
git-sync.yml
File metadata and controls
25 lines (24 loc) · 850 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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:
branches:
- master
- develop
jobs:
GitHub-to-Bitbucket:
runs-on: ubuntu-latest
steps:
- name: webfactory/ssh-agent@v0.8.0
uses: webfactory/ssh-agent@v0.8.0
with:
ssh-private-key: ${{ secrets.BITBUCKET_SECRET }}
- name: wei/git-sync@v3.0.0
uses: wei/git-sync@v3.0.0
with:
ssh_private_key: ${{ secrets.BITBUCKET_SECRET }}
source_repo: "https://github.com/GameServerManagers/LinuxGSM"
source_branch: "refs/heads/*"
destination_repo: "git@bitbucket.org:GameServerManagers/linuxgsm.git"
destination_branch: "refs/heads/*"