pounder_test/.github/workflows/hitl_trigger.yml

30 lines
683 B
YAML

name: HITL Trigger
on:
workflow_dispatch:
push:
branches:
- staging
- trying
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 }}