-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
081a7b4
commit 4bd21b9
Showing
1 changed file
with
10 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }} |