Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merge changes from 2.5 into main #8

Merged
merged 12 commits into from
Oct 14, 2024
30 changes: 30 additions & 0 deletions .github/workflows/sync_branches.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Sync Branches
on:
push:
branches:
- "2.4"
- "2.5"
workflow_dispatch:

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
steps:
- name: Merge ${{ matrix.from_branch }} into ${{ matrix.to_branch }}
if: github.event_name == 'workflow_dispatch' || github.ref_name == matrix.from_branch
uses: tretuna/[email protected]
with:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}
FROM_BRANCH: ${{ matrix.from_branch }}
TO_BRANCH: ${{ matrix.to_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 }}`.
Loading