Skip to content

Commit 042f728

Browse files
authored
.github: update backport to not run on backport PRs (#1112)
Signed-off-by: Rohit Ashiwal <[email protected]>
1 parent bb95ea8 commit 042f728

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

.github/workflows/backport.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
name: Backport
32
on:
43
pull_request_target:
@@ -8,7 +7,10 @@ on:
87

98
jobs:
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 }}
@@ -36,5 +37,4 @@ jobs:
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

0 commit comments

Comments
 (0)