Merge pull request #376 from balena-os/kyle/prevent-dupe-executions

Prevent duplicate Flowzone workflow executions
This commit is contained in:
Kyle Harding 2023-03-16 14:43:00 -04:00 committed by GitHub
commit 4af941e586
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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