flowzone.yml: Prevent duplicate workflow executions

Change-type: patch
This commit is contained in:
Kyle Harding 2024-04-23 12:46:57 -04:00 committed by GitHub
parent 412e3fc3d2
commit 8224f0826f
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -13,6 +13,15 @@ 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
with: with:
cloudflare_website: "open-balena" cloudflare_website: "open-balena"