2022-12-05 22:01:33 +00:00
|
|
|
name: Flowzone
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [opened, synchronize, closed]
|
2023-02-16 13:53:38 +00:00
|
|
|
branches: [main, master]
|
|
|
|
pull_request_target:
|
|
|
|
types: [opened, synchronize, closed]
|
|
|
|
branches: [main, master]
|
2022-12-05 22:01:33 +00:00
|
|
|
|
|
|
|
jobs:
|
|
|
|
flowzone:
|
|
|
|
name: Flowzone
|
2022-12-06 14:08:14 +00:00
|
|
|
uses: product-os/flowzone/.github/workflows/flowzone.yml@master
|
2024-04-23 16:46:57 +00:00
|
|
|
# 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'
|
|
|
|
)
|
2022-11-14 09:37:23 +00:00
|
|
|
secrets: inherit
|
|
|
|
with:
|
2022-02-24 02:09:48 +00:00
|
|
|
jobs_timeout_minutes: 60
|
|
|
|
cloudflare_website: open-balena
|
|
|
|
balena_slugs: |
|
|
|
|
balena/open-balena
|
|
|
|
|
|
|
|
tests:
|
|
|
|
name: openBalena tests
|
|
|
|
uses: ./.github/workflows/tests.yml
|
|
|
|
needs: [flowzone]
|
|
|
|
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'
|
|
|
|
)) && github.event.action != 'closed'
|
|
|
|
secrets: inherit
|