diff --git a/.github/workflows/update-migration-branch.yml b/.github/workflows/update-migration-branch.yml new file mode 100644 index 00000000..0f9f5b4c --- /dev/null +++ b/.github/workflows/update-migration-branch.yml @@ -0,0 +1,34 @@ +name: Update Migration Branch + +on: + pull_request: + types: + - closed + +permissions: + contents: write + +jobs: + sync: + if: github.event.pull_request.merged == true + runs-on: ubuntu-latest + steps: + - name: Checkout + uses: actions/checkout@v4 + with: + fetch-depth: 0 + + - name: Setup Git User + run: | + git config user.name "GitHub Action" + git config user.email "" + + + - name: Update Migration Branch + run: | + git checkout main + git fetch origin + git checkout migration-deploy + git pull + git merge origin/main + git push origin migration-deploy \ No newline at end of file