@@ -540,14 +540,33 @@ jobs:
540
540
event-type : depthai-python-release
541
541
client-payload : ' {"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
542
542
543
+ # notify_hil_workflow_linux_x86_64:
544
+ # needs: [build-linux-x86_64]
545
+ # runs-on: ubuntu-latest
546
+ # steps:
547
+ # - name: Repository Dispatch
548
+ # uses: peter-evans/repository-dispatch@v2
549
+ # with:
550
+ # token: ${{ secrets.HIL_CORE_DISPATCH_TOKEN }}
551
+ # repository: luxonis/depthai-core-hil-tests
552
+ # event-type: python-hil-event
553
+ # client-payload: '{"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
554
+
543
555
notify_hil_workflow_linux_x86_64 :
544
556
needs : [build-linux-x86_64]
545
557
runs-on : ubuntu-latest
546
558
steps :
547
- - name : Repository Dispatch
548
- uses : peter-evans/repository-dispatch@v2
549
- with :
550
- token : ${{ secrets.HIL_CORE_DISPATCH_TOKEN }}
551
- repository : luxonis/depthai-core-hil-tests
552
- event-type : python-hil-event
553
- client-payload : ' {"ref": "${{ github.ref }}", "sha": "${{ github.sha }}"}'
559
+ - name : Dispatch an action and get the run ID
560
+ uses : codex-/return-dispatch@v1
561
+ id : return_dispatch
562
+ with :
563
+ token : ${{ secrets.HIL_CORE_DISPATCH_TOKEN }} # Note this is NOT GITHUB_TOKEN but a PAT
564
+ ref : main # or refs/heads/target_branch
565
+ repo : depthai-core-hil-tests
566
+ owner : luxonis
567
+ workflow : regression_test.yml
568
+ workflow_inputs : ' {"commit": "${{ github.ref }}", "sha": "${{ github.sha }}", "parent_url": "https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"}'
569
+ workflow_timeout_seconds : 120 # Default: 300
570
+
571
+ - name : Release
572
+ run : echo "https://github.com/luxonis/depthai-core-hil-tests/actions/runs/${{steps.return_dispatch.outputs.run_id}}" >> $GITHUB_STEP_SUMMARY
0 commit comments