File tree Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Expand file tree Collapse file tree 1 file changed +7
-3
lines changed Original file line number Diff line number Diff 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' }}
You can’t perform that action at this time.
0 commit comments