File tree 1 file changed +18
-3
lines changed
1 file changed +18
-3
lines changed Original file line number Diff line number Diff line change 4
4
types :
5
5
- closed
6
6
- labeled
7
+ branches :
8
+ - main
7
9
8
10
jobs :
9
11
backport :
10
- runs-on : ubuntu-20.04
11
12
name : Backport
13
+ runs-on : ubuntu-22.04
14
+ # Only react to merged PRs for security reasons.
15
+ # See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target.
16
+ if : >
17
+ github.event.pull_request.merged &&
18
+ (
19
+ github.event.action == 'closed' ||
20
+ (
21
+ github.event.action == 'labeled' &&
22
+ contains(github.event.label.name, 'backport')
23
+ )
24
+ )
12
25
steps :
13
26
- name : Backport
14
- uses : zephyrproject-rtos/action-backport@v1.1.99
27
+ uses : zephyrproject-rtos/action-backport@v2.0.3-3
15
28
with :
16
- github_token : ${{ secrets.GITHUB_TOKEN }}
29
+ github_token : ${{ secrets.NCS_GITHUB_TOKEN }}
30
+ issue_labels : Backport
31
+ labels_template : ' ["Backport"]'
You can’t perform that action at this time.
0 commit comments