From 081a7b443b1777755e203b456d4abd4cd846656d Mon Sep 17 00:00:00 2001 From: Shivam Gutgutia <100862487+shivamgutgutia@users.noreply.github.com> Date: Fri, 22 Dec 2023 20:31:51 +0530 Subject: [PATCH] Create mirror.yml --- .github/workflows/mirror.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .github/workflows/mirror.yml diff --git a/.github/workflows/mirror.yml b/.github/workflows/mirror.yml new file mode 100644 index 0000000..bb38364 --- /dev/null +++ b/.github/workflows/mirror.yml @@ -0,0 +1,19 @@ +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