flowzone: Prevent duplicate workflow executions
Changelog-entry: Prevent duplicate CI workflow executions Signed-off-by: Kyle Harding <kyle@balena.io>
This commit is contained in:
parent
3030752a66
commit
c3b2150272
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:
|
flowzone:
|
||||||
name: Flowzone
|
name: Flowzone
|
||||||
uses: product-os/flowzone/.github/workflows/flowzone.yml@master
|
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
|
secrets: inherit
|
||||||
|
|
Loading…
Add table
Reference in a new issue