Skip to content

Commit

Permalink
Update mirror.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
shivamgutgutia authored Dec 22, 2023
1 parent 081a7b4 commit 4bd21b9
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/mirror.yml
Original file line number Diff line number Diff line change
@@ -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 }}

0 comments on commit 4bd21b9

Please sign in to comment.