2022-12-06 03:31:33 +05:30
|
|
|
name: Flowzone
|
|
|
|
|
|
|
|
on:
|
|
|
|
pull_request:
|
|
|
|
types: [opened, synchronize, closed]
|
2023-02-16 15:53:38 +02:00
|
|
|
branches: [main, master]
|
|
|
|
pull_request_target:
|
|
|
|
types: [opened, synchronize, closed]
|
|
|
|
branches: [main, master]
|
2022-12-06 03:31:33 +05:30
|
|
|
|
|
|
|
jobs:
|
|
|
|
flowzone:
|
|
|
|
name: Flowzone
|
2022-12-06 19:38:14 +05:30
|
|
|
uses: product-os/flowzone/.github/workflows/flowzone.yml@master
|
2024-04-23 12:46:57 -04: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 15:07:23 +05:30
|
|
|
secrets: inherit
|
|
|
|
with:
|
2022-02-23 18:09:48 -08:00
|
|
|
jobs_timeout_minutes: 60
|
|
|
|
cloudflare_website: open-balena
|
|
|
|
custom_runs_on: |
|
|
|
|
[
|
|
|
|
[
|
|
|
|
"self-hosted",
|
|
|
|
"Linux",
|
|
|
|
"X64"
|
|
|
|
]
|
|
|
|
]
|
|
|
|
|
|
|
|
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
|