summaryrefslogtreecommitdiff
path: root/meshmc/.github/workflows/backport.yml
diff options
context:
space:
mode:
Diffstat (limited to 'meshmc/.github/workflows/backport.yml')
-rw-r--r--meshmc/.github/workflows/backport.yml30
1 files changed, 30 insertions, 0 deletions
diff --git a/meshmc/.github/workflows/backport.yml b/meshmc/.github/workflows/backport.yml
new file mode 100644
index 0000000000..0ca52b37cc
--- /dev/null
+++ b/meshmc/.github/workflows/backport.yml
@@ -0,0 +1,30 @@
+name: Backport
+on:
+ pull_request_target:
+ types: [closed, labeled]
+
+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-slim
+ 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:
+ # Config README: https://github.com/korthout/backport-action#backport-action
+ pull_description: |-
+ Bot-based backport to `${target_branch}`, triggered by a label in #${pull_number}.
+