Skip to content

Commit

Permalink
Merge pull request #5315 from uktrade/chore/add-github-action-for-mig…
Browse files Browse the repository at this point in the history
…ration-branch

Add GitHub action to auto-rebase the migration branch
  • Loading branch information
cgsunkel committed Apr 3, 2024
2 parents 25ca1bc + 911a6f8 commit 005eb37
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/update-migration-branch.yml
Original file line number Diff line number Diff line change
@@ -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 "<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

0 comments on commit 005eb37

Please sign in to comment.