Skip to content

Commit

Permalink
Adding workflow to sync main to stage after push, copied from milo
Browse files Browse the repository at this point in the history
  • Loading branch information
JasonHowellSlavin committed Apr 9, 2024
1 parent c1d7c1a commit 1951994
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/auto-merge-main-to-stage.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: PRs to main
on:
pull_request:
branches: [main]
types: [closed]
jobs:
merge-main-to-stage:
if: github.event.pull_request.merged == true
timeout-minutes: 2
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set Git config
run: |
git config user.email "github-actions@github.com"
git config user.name "github-actions"
- name: Merge main to stage
run: |
git fetch
git checkout stage
git pull
git merge --no-ff main -m "Auto-merge main to stage"
git push

0 comments on commit 1951994

Please sign in to comment.