diff options
Diffstat (limited to '.github/workflows')
-rw-r--r-- | .github/workflows/backport.yaml | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/.github/workflows/backport.yaml b/.github/workflows/backport.yaml index 43245301..54dce5bc 100644 --- a/.github/workflows/backport.yaml +++ b/.github/workflows/backport.yaml | |||
@@ -1,6 +1,6 @@ | |||
1 | name: Backport labeled merged pull requests | 1 | name: Backport labeled merged pull requests |
2 | on: | 2 | on: |
3 | pull_request: | 3 | pull_request_target: |
4 | types: [closed] | 4 | types: [closed] |
5 | issue_comment: | 5 | issue_comment: |
6 | types: [created] | 6 | types: [created] |
@@ -12,11 +12,11 @@ jobs: | |||
12 | # or when a comment containing `/backport` is created | 12 | # or when a comment containing `/backport` is created |
13 | if: > | 13 | if: > |
14 | ( | 14 | ( |
15 | github.event_name == 'pull_request' && | 15 | github.event_name == 'pull_request_target' && |
16 | github.event.pull_request.merged | 16 | github.event.pull_request_target.merged |
17 | ) || ( | 17 | ) || ( |
18 | github.event_name == 'issue_comment' && | 18 | github.event_name == 'issue_comment' && |
19 | github.event.issue.pull_request && | 19 | github.event.issue.pull_request_target && |
20 | contains(github.event.comment.body, '/backport') | 20 | contains(github.event.comment.body, '/backport') |
21 | ) | 21 | ) |
22 | steps: | 22 | steps: |