From 6a51a7667332929989953ec3f4b33349c623993a Mon Sep 17 00:00:00 2001 From: Angel Aviel Domaoan Date: Tue, 8 Feb 2022 09:54:04 +0800 Subject: [PATCH] Add repo sync in deployment --- .github/workflows/deployment.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/deployment.yml b/.github/workflows/deployment.yml index 9e3e2a2..6a0accf 100644 --- a/.github/workflows/deployment.yml +++ b/.github/workflows/deployment.yml @@ -9,6 +9,15 @@ jobs: deploy: runs-on: ubuntu-latest steps: + - name: git-sync + uses: wei/git-sync@v3 + with: + source_repo: "git@github.com:lexintegritastech/cdao-pjet.git" + source_branch: "master" + destination_repo: "git@github.com:cdasia/cdao-pjet.git" + destination_branch: "master" + source_ssh_private_key: ${{ secrets.SOURCE_SSH_PRIVATE_KEY }} + destination_ssh_private_key: ${{ secrets.DESTINATION_SSH_PRIVATE_KEY }} - uses: actions/checkout@v2 - uses: ruby/setup-ruby@v1 with: