File tree Expand file tree Collapse file tree 1 file changed +5
-5
lines changed
Expand file tree Collapse file tree 1 file changed +5
-5
lines changed Original file line number Diff line number Diff line change 1-
21name : Backport
32on :
43 pull_request_target :
87
98jobs :
109 backport :
10+ name : Backport
1111 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.
1214 if : >
1315 github.event.pull_request.merged
1416 && (
@@ -21,11 +23,10 @@ jobs:
2123 permissions :
2224 contents : write
2325 pull-requests : write
24- name : Backport
2526 steps :
2627 - name : GitHub App token
2728 id : github_app_token
28- uses : tibdex/github-app-token@v1.5 .0
29+ uses : tibdex/github-app-token@v2.1 .0
2930 with :
3031 app_id : ${{ secrets.APP_ID }}
3132 private_key : ${{ secrets.APP_PRIVATE_KEY }}
3637 with :
3738 github_token : ${{ steps.github_app_token.outputs.token }}
3839 head_template : backport/backport-<%= number %>-to-<%= base %>
39- labels_template : " <%= JSON.stringify([...labels, 'autocut']) % >"
40- failure_labels : " failed backport"
40+ failure_labels : backport-failed
You can’t perform that action at this time.
0 commit comments