File tree Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Expand file tree Collapse file tree 1 file changed +17
-7
lines changed Original file line number Diff line number Diff line change 1
1
name : Backport
2
+
2
3
on :
3
- pull_request :
4
- types :
5
- - closed
6
- - labeled
4
+ pull_request_target :
5
+ types : ["labeled", "closed"]
7
6
8
7
jobs :
9
8
backport :
10
- runs-on : ubuntu-22.04
11
- name : Backport
9
+ name : Backport PR
10
+ runs-on : ubuntu-latest
11
+ if : github.event.pull_request.merged == true && !(contains(github.event.pull_request.labels.*.name, 'backport-'))
12
+
12
13
steps :
13
14
- name : Backport
14
- uses : tibdex /backport@v1
15
+ uses : sorenlouv /backport-github-action@929f69d04adbc196d982e60f02837b6cc00b3129
15
16
with :
16
17
github_token : ${{ secrets.GITHUB_TOKEN }}
18
+ auto_backport_label_prefix : ' backport-'
19
+
20
+ - name : Info log
21
+ if : ${{ success() }}
22
+ run : cat ~/.backport/backport.info.log
23
+
24
+ - name : Debug log
25
+ if : ${{ failure() }}
26
+ run : cat ~/.backport/backport.debug.log
You can’t perform that action at this time.
0 commit comments