From 28d866ef11d52a2cd8deb84e9cb9a344c1ea9c0d Mon Sep 17 00:00:00 2001 From: Tim Haase <timhaase@gmx.net> Date: Thu, 24 Feb 2022 13:38:25 +0100 Subject: [PATCH] Add git-sync workflow to mirror repository --- .github/workflows/git-sync.yml | 13 +++++++++++++ .gitignore | 1 + 2 files changed, 14 insertions(+) create mode 100644 .github/workflows/git-sync.yml diff --git a/.github/workflows/git-sync.yml b/.github/workflows/git-sync.yml new file mode 100644 index 0000000..b4b2328 --- /dev/null +++ b/.github/workflows/git-sync.yml @@ -0,0 +1,13 @@ +on: push +jobs: + git-sync: + runs-on: ubuntu-latest + steps: + - name: git-sync + uses: wei/git-sync@v3 + with: + source_repo: "lepus2589/LoadStaticSharedTargets" + source_branch: "refs/remotes/source/*:refs/tags/*" + destination_repo: "${{ secrets.MIRROR_DESTINATION_REPO_URL }}" + destination_branch: "refs/heads/*:refs/tags/*" + destination_ssh_private_key: ${{ secrets.DESTINATION_SSH_PRIVATE_KEY }} diff --git a/.gitignore b/.gitignore index 727c114..3d9e1ca 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,4 @@ .* !.gitignore !.gitattributes +!.github/ \ No newline at end of file -- GitLab