Skip to content

Commit

Permalink
MWPW-140623 - Auto-merge main to stage (#1671)
Browse files Browse the repository at this point in the history
add workflow to auto-merge main into stage
  • Loading branch information
elan-tbx authored Jan 8, 2024
1 parent ccf9510 commit ba21fa0
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 "[email protected]"
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 ba21fa0

Please sign in to comment.