From d7d7a045a104a566824ef30a0e86bff8727874ec Mon Sep 17 00:00:00 2001 From: sareepattamannil Date: Fri, 31 May 2024 12:37:08 -0400 Subject: [PATCH] init repo --- .github/workflows/sync_branches.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/sync_branches.yml diff --git a/.github/workflows/sync_branches.yml b/.github/workflows/sync_branches.yml new file mode 100644 index 0000000..4a6450e --- /dev/null +++ b/.github/workflows/sync_branches.yml @@ -0,0 +1,23 @@ +name: Sync Parent Branch + +on: + push: + branches: + - parent + +jobs: + sync: + runs-on: ubuntu-latest + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + + - name: Fetch latest changes + run: git fetch origin + + - name: Merge changes into parent branch + run: | + git checkout child + git merge origin/parent + git push origin child