Skip to content

Commit ac57ca9

Browse files
authored
Test DataDreamer on PR (#323)
1 parent 45ad4ed commit ac57ca9

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/bom-tests.yaml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -103,8 +103,12 @@ jobs:
103103

104104
test-datadreamer:
105105
name: Test Datadreamer
106-
if: ${{ inputs.run_datadreamer }}
106+
if: >-
107+
(github.event_name == 'workflow_dispatch' && inputs.run_datadreamer) ||
108+
(github.event_name == 'pull_request' &&
109+
startsWith(github.head_ref, 'release/') &&
110+
github.event.pull_request.base.ref == 'main')
107111
uses: Luxonis/datadreamer/.github/workflows/unit-tests.yaml@main
108112
with:
109-
ml_ref: ${{ inputs.ml_ref }}
110-
datadreamer_ref: ${{ inputs.datadreamer_ref }}
113+
ml_ref: ${{ github.event_name == 'workflow_dispatch' && inputs.ml_ref || github.head_ref }}
114+
datadreamer_ref: ${{ github.event_name == 'workflow_dispatch' && inputs.datadreamer_ref || 'main' }}

0 commit comments

Comments
 (0)