File tree 3 files changed +16
-4
lines changed
3 files changed +16
-4
lines changed Original file line number Diff line number Diff line change 7
7
8
8
jobs :
9
9
backport :
10
+ name : Backport
10
11
runs-on : ubuntu-latest
12
+ # Only react to merged PRs for security reasons.
13
+ # See https://docs.github.com/en/actions/using-workflows/events-that-trigger-workflows#pull_request_target.
14
+ if : >
15
+ github.event.pull_request.merged
16
+ && (
17
+ github.event.action == 'closed'
18
+ || (
19
+ github.event.action == 'labeled'
20
+ && contains(github.event.label.name, 'backport')
21
+ )
22
+ )
11
23
permissions :
12
24
contents : write
13
25
pull-requests : write
14
- name : Backport
15
26
steps :
16
27
- name : GitHub App token
17
28
id : github_app_token
18
- uses : tibdex/github-app-token@v1.5 .0
29
+ uses : tibdex/github-app-token@v2.1 .0
19
30
with :
20
31
app_id : ${{ secrets.APP_ID }}
21
32
private_key : ${{ secrets.APP_PRIVATE_KEY }}
22
33
installation_id : 22958780
23
34
24
35
- name : Backport
25
- uses : VachaShah/backport@v1.1.4
36
+ uses : VachaShah/backport@v2.2.0
26
37
with :
27
38
github_token : ${{ steps.github_app_token.outputs.token }}
28
- branch_name : backport/backport-${{ github.event.number }}
39
+ head_template : backport/backport-<%= number %>-to-<%= base %>
40
+ failure_labels : backport-failed
You can’t perform that action at this time.
0 commit comments