Merge pull request #376 from balena-os/kyle/prevent-dupe-executions
Prevent duplicate Flowzone workflow executions
This commit is contained in:
commit
4af941e586
1 changed files with 9 additions and 0 deletions
9
.github/workflows/flowzone.yml
vendored
9
.github/workflows/flowzone.yml
vendored
|
@ -18,4 +18,13 @@ jobs:
|
|||
flowzone:
|
||||
name: Flowzone
|
||||
uses: product-os/flowzone/.github/workflows/flowzone.yml@master
|
||||
# prevent duplicate workflow executions for pull_request and pull_request_target
|
||||
if: |
|
||||
(
|
||||
github.event.pull_request.head.repo.full_name == github.repository &&
|
||||
github.event_name == 'pull_request'
|
||||
) || (
|
||||
github.event.pull_request.head.repo.full_name != github.repository &&
|
||||
github.event_name == 'pull_request_target'
|
||||
)
|
||||
secrets: inherit
|
||||
|
|
Loading…
Add table
Reference in a new issue