summaryrefslogtreecommitdiff
path: root/.github/workflows/meshmc-backport.yml
blob: 3c739a4a261b8ed19d64e366a8aec3e04cdb55a3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
name: "MeshMC: Backport"

on:
  workflow_dispatch:
  workflow_call:

permissions: {}

jobs:
  backport:
    permissions:
      contents: write
      pull-requests: write
      actions: write

    name: Backport Pull Request
    if: github.repository_owner == 'Project-Tick' && github.event.pull_request.merged == true && (github.event_name != 'labeled' || startsWith('backport', github.event.label.name))
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v6
        with:
          ref: ${{ github.event.pull_request.head.sha }}

      - name: Create backport PRs
        uses: korthout/backport-action@v4.3.0
        with:
          pull_description: |-
            Bot-based backport to `${target_branch}`, triggered by a label in #${pull_number}.