From 4bd21b94c0a9bd0b883ac2e85d323b8f875a8037 Mon Sep 17 00:00:00 2001 From: Shivam Gutgutia <100862487+shivamgutgutia@users.noreply.github.com> Date: Fri, 22 Dec 2023 21:03:59 +0530 Subject: [PATCH] Update mirror.yml --- .github/workflows/mirror.yml | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml index bb38364..b499393 100644 --- a/.github/workflows/mirror.yml +++ b/.github/workflows/mirror.yml @@ -1,19 +1,19 @@ -name: Mirror Personal Repo to Organization Repo +name: Sync to Backend Repo on: push: branches: - - main # Replace 'main' with the branch name you want to mirror + - main jobs: - mirror: + sync_to_backend: runs-on: ubuntu-latest - steps: - - name: Checkout code - uses: actions/checkout@v2 + - uses: actions/checkout@v2 - - name: Push changes to organization repository - run: | - git remote add organization_repo https://github.com/CodeChefVIT/contactify-backend.git - git push organization_repo HEAD:main + - name: Sync code to backend repository + uses: mirror-actions/sync-repo@v2 + with: + source_repo: 'shivamgutgutia/Contactify' + destination_repo: 'codechefvit/contactify-backend' + github_token: ${{ secrets.GITHUB_TOKEN }}