pounder_test/.github/workflows/hitl_trigger.yml

28 lines
671 B
YAML

name: HITL Trigger
on:
workflow_dispatch:
pull_request:
branches: [ master ]
jobs:
hitl-trigger:
runs-on: ubuntu-latest
environment: hitl
steps:
- uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.DISPATCH_PAT }}
event-type: stabilizer
repository: quartiq/hitl
client-payload: '{"github": ${{ toJson(github) }}}'
- name: Wait for startup
run: sleep 30
- uses: fountainhead/action-wait-for-check@v1.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
checkName: HITL Run Status
ref: ${{ github.event.pull_request.head.sha }}