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