From d0d2b15a717eef0527cff09e02c739590521079a Mon Sep 17 00:00:00 2001 From: kalidax Date: Mon, 27 Nov 2023 15:08:00 +0100 Subject: [PATCH] test --- .github/workflows/sync-axelar-repo.yml | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/.github/workflows/sync-axelar-repo.yml b/.github/workflows/sync-axelar-repo.yml index 77e007812..301527ccb 100644 --- a/.github/workflows/sync-axelar-repo.yml +++ b/.github/workflows/sync-axelar-repo.yml @@ -16,7 +16,12 @@ jobs: - name: Sync with private repo run: | - # Set the push URL for the 'origin' remote - git remote set-url --push origin ${{ secrets.PRIVATE_REPO_URL }} - # Push changes using --mirror, excluding the deletion of the main branch - git push --mirror --force + # Add private repo as a remote + git remote add private ${{ secrets.PRIVATE_REPO_URL }} + + # Fetch branches from private repo + git fetch private + + # Mirror all branches, tags, and other refs to private repo + git push private --mirror +