mirror of
https://github.com/Freescale/meta-freescale-3rdparty.git
synced 2025-07-19 12:09:01 +02:00
cicd: Use pull_request_target instead of pull_request
When a PR comes from a forked repo, use pull_request_target as event type instead of pull_request. Signed-off-by: Vinicius Aquino <vinicius.aquino@ossystems.com.br>
This commit is contained in:
parent
35acd10426
commit
20f7b80f3f
8
.github/workflows/backport.yaml
vendored
8
.github/workflows/backport.yaml
vendored
|
@ -1,6 +1,6 @@
|
|||
name: Backport labeled merged pull requests
|
||||
on:
|
||||
pull_request:
|
||||
pull_request_target:
|
||||
types: [closed]
|
||||
issue_comment:
|
||||
types: [created]
|
||||
|
@ -12,11 +12,11 @@ jobs:
|
|||
# or when a comment containing `/backport` is created
|
||||
if: >
|
||||
(
|
||||
github.event_name == 'pull_request' &&
|
||||
github.event.pull_request.merged
|
||||
github.event_name == 'pull_request_target' &&
|
||||
github.event.pull_request_target.merged
|
||||
) || (
|
||||
github.event_name == 'issue_comment' &&
|
||||
github.event.issue.pull_request &&
|
||||
github.event.issue.pull_request_target &&
|
||||
contains(github.event.comment.body, '/backport')
|
||||
)
|
||||
steps:
|
||||
|
|
Loading…
Reference in New Issue
Block a user