Skip to content

Commit

Permalink
workflow to auto merge to devel
Browse files Browse the repository at this point in the history
  • Loading branch information
PGimenez committed Aug 22, 2023
1 parent cd8f008 commit 476f72d
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/mergetodevel.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Auto Merge PR branches to Devel

on:
pull_request:
branches:
- main
types:
- opened
- synchronize
- reopened

jobs:
merge-to-devel:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v2
with:
fetch-depth: 0

- name: Merge to Devel
run: |
git checkout devel
git merge --no-ff --no-commit origin/${{ github.head_ref }}
git commit -m "Merged ${{ github.head_ref }} into devel (from PR)"
git push origin devel

0 comments on commit 476f72d

Please sign in to comment.