diff options
author | Otavio Salvador <otavio@ossystems.com.br> | 2021-07-07 08:57:46 -0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-07-07 08:57:46 -0300 |
commit | 7e8960929309cfc929784a7dee39411b5c6c779c (patch) | |
tree | d7a539ab46b63d457de759bcb99fc2890cdd8b38 | |
parent | fb2a125c9372aaff722b4211533a549f0e54d090 (diff) | |
parent | 3420ca3933d0b573fb8310fbba0a16c146486b99 (diff) | |
download | meta-freescale-7e8960929309cfc929784a7dee39411b5c6c779c.tar.gz |
Merge pull request #824 from Ossanes/topic/cicd-pull-request-target
cicd: Use pull_request_target instead of pull_request
-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: |