Skip to content

Commit

Permalink
Avoid duplicate workflows for external contributors
Browse files Browse the repository at this point in the history
Change-type: patch
  • Loading branch information
thgreasi authored and klutchell committed Sep 15, 2023
1 parent 79af585 commit 72ca511
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/flowzone.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,4 +17,9 @@ jobs:
flowzone:
name: Flowzone
uses: product-os/flowzone/.github/workflows/flowzone.yml@master
# prevent duplicate workflows and only allow one `pull_request` or `pull_request_target` for
# internal or external contributions respectively
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

0 comments on commit 72ca511

Please sign in to comment.