Skip to content

Commit

Permalink
Add GitHub Actions workflow to create merge-up pull requests (#1248)
Browse files Browse the repository at this point in the history
  • Loading branch information
alcaeus authored Mar 8, 2024
1 parent 5767b4a commit 770abbe
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions .github/workflows/merge-up.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Merge up

on:
push:
branches:
- "v[0-9]+.[0-9]+"

permissions:
contents: write
pull-requests: write

env:
GH_TOKEN: ${{ github.token }}

jobs:
merge-up:
name: Create merge up pull request
runs-on: ubuntu-latest

steps:
- name: Checkout
id: checkout
uses: actions/checkout@v4
with:
# fetch-depth 0 is required to fetch all branches, not just the branch being built
fetch-depth: 0

- name: Create pull request
id: create-pull-request
uses: alcaeus/automatic-merge-up-action@main
with:
ref: ${{ github.ref_name }}
branchNamePattern: 'v<major>.<minor>'
fallbackBranch: 'master'

0 comments on commit 770abbe

Please sign in to comment.