From 8224f0826fcf44f5da1729af803de5e138fbcdc2 Mon Sep 17 00:00:00 2001 From: Kyle Harding Date: Tue, 23 Apr 2024 12:46:57 -0400 Subject: [PATCH] flowzone.yml: Prevent duplicate workflow executions Change-type: patch --- .github/workflows/flowzone.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/flowzone.yml b/.github/workflows/flowzone.yml index 02c5d0f..ef3e3d1 100644 --- a/.github/workflows/flowzone.yml +++ b/.github/workflows/flowzone.yml @@ -13,6 +13,15 @@ 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 with: cloudflare_website: "open-balena"