Skip to content

Commit 7bf34bc

Browse files
committed
Switch to alternative backport action
1 parent 65cc836 commit 7bf34bc

File tree

1 file changed

+17
-7
lines changed

1 file changed

+17
-7
lines changed

.github/workflows/backport.yml

Lines changed: 17 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,26 @@
11
name: Backport
2+
23
on:
3-
pull_request:
4-
types:
5-
- closed
6-
- labeled
4+
pull_request_target:
5+
types: ["labeled", "closed"]
76

87
jobs:
98
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+
1213
steps:
1314
- name: Backport
14-
uses: tibdex/backport@v1
15+
uses: sorenlouv/backport-github-action@929f69d04adbc196d982e60f02837b6cc00b3129
1516
with:
1617
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

0 commit comments

Comments
 (0)