From 078ee7c36fd1f286bfb5840ecadc65dba1070259 Mon Sep 17 00:00:00 2001 From: Christopher Sunkel Date: Wed, 10 Apr 2024 10:47:46 +0100 Subject: [PATCH] Add action to update the migration branch (#155) --- .github/workflows/update-migration-branch.yml | 34 +++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/update-migration-branch.yml 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