Skip to content
This repository has been archived by the owner on Dec 9, 2024. It is now read-only.

Commit

Permalink
Add new action for govpaas branch
Browse files Browse the repository at this point in the history
  • Loading branch information
cgsunkel committed Jul 10, 2024
1 parent 3403f4a commit cd0a9d5
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/update-migration-branch-from-govpaas.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 govuk-paas-deploy
git fetch origin
git checkout migration-deploy
git pull
git merge origin/govuk-paas-deploy
git push origin migration-deploy

0 comments on commit cd0a9d5

Please sign in to comment.