From 770abbe819c82242774c3367afb5f4e88caadac1 Mon Sep 17 00:00:00 2001 From: Andreas Braun Date: Fri, 8 Mar 2024 12:59:26 +0100 Subject: [PATCH] Add GitHub Actions workflow to create merge-up pull requests (#1248) --- .github/workflows/merge-up.yml | 34 ++++++++++++++++++++++++++++++++++ 1 file changed, 34 insertions(+) create mode 100644 .github/workflows/merge-up.yml diff --git a/.github/workflows/merge-up.yml b/.github/workflows/merge-up.yml new file mode 100644 index 000000000..ade123af6 --- /dev/null +++ b/.github/workflows/merge-up.yml @@ -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.' + fallbackBranch: 'master'