Просмотр исходного кода

Merge branch 'master' into develop

Daniel Gibbs 6 лет назад
Родитель
Сommit
317c1c8e06
1 измененных файлов с 22 добавлено и 0 удалено
  1. 22 0
      .github/workflows/git-sync.yml

+ 22 - 0
.github/workflows/git-sync.yml

@@ -0,0 +1,22 @@
+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/LinuxGSM"
+        source_branch: "refs/heads/*"
+        destination_repo: "git@bitbucket.org:dgibbs64/linuxgsm.git"
+        destination_branch: "refs/heads/*"
+        ssh_private_key: ${{ secrets.BITBUCKET_SECRET }}