Allow the workflow to create PRs #8
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Merge stable into child branches | ||
on: | ||
push: | ||
branches: ["stable"] | ||
jobs: | ||
create-pull-request: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v4 | ||
with: | ||
fetch-depth: 0 # Fetch all branches and their history | ||
- name: Fetch all branches | ||
run: git fetch --all | ||
- name: Merge changes | ||
run: | | ||
git checkout minor-next | ||
git merge stable | ||
- name: Create Pull Request for branch 'minor-next' | ||
token: ${{ secrets.AUTO_MERGE_TOKEN }} | ||
id: minor-next | ||
uses: peter-evans/create-pull-request@v6 | ||
with: | ||
base: minor-next | ||
title: Merge branch 'stable' into minor-next |