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 }}