Skip to content

Commit

Permalink
ci(actions): Add sync_branches workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
Holzhaus committed Oct 14, 2024
1 parent 6bf96a2 commit eb03341
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/sync_branches.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Sync Branches
on:
push:
- "2.4"
- "2.5"

jobs:
sync-branches:
strategy:
matrix:
include:
- from_branch: 2.4
to_branch: 2.5
- from_branch: 2.5
to_branch: main
runs-on: ubuntu-latest
if: ${{ github.ref_name == matrix.to_branch }}
steps:
- name: Merge ${{ matrix.from_branch }} into ${{ matrix.to_branch }}
uses: tretuna/[email protected]
with:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
FROM_BRANCH: ${{ matrix.from_branch }}
TO_BRANCH: ${{ matrix.from_branch }}
CONTENT_COMPARISON: true # Prevent empty PRs
PULL_REQUEST_TITLE: Merge changes from `${{ matrix.from_branch }}` into `${{ matrix.to_branch }}`
PULL_REQUEST_BODY: |
New content has landed in the `${{ matrix.from_branch }}` branch, so let's merge the changes into `${{ matrix.to_branch }}`.

0 comments on commit eb03341

Please sign in to comment.