Create mirror.yml #1
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
name: Mirror Personal Repo to Organization Repo | |
on: | |
push: | |
branches: | |
- main # Replace 'main' with the branch name you want to mirror | |
jobs: | |
mirror: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
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 |