We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents d027f36 + 5b6bf41 commit 4e22c4fCopy full SHA for 4e22c4f
.github/workflows/backport.yml
@@ -2,11 +2,16 @@ name: Automatic backport action
2
3
on:
4
pull_request_target:
5
- types: ["closed"]
+ types: ["closed", "labeled"]
6
+
7
+permissions:
8
+ contents: write # so it can comment
9
+ pull-requests: write # so it can create pull requests
10
11
jobs:
12
backport:
13
name: Backport PR
14
+ if: github.event.pull_request.merged == true && !(contains(github.event.pull_request.labels.*.name, 'backport'))
15
runs-on: ubuntu-latest
16
steps:
17
- name: Backport Action
@@ -21,4 +26,4 @@ jobs:
21
26
22
27
- name: Debug log
23
28
if: ${{ failure() }}
24
- run: cat ~/.backport/backport.debug.log
29
+ run: cat ~/.backport/backport.debug.log
0 commit comments