pounder_test/.github/workflows/hitl_trigger.yml

30 lines
683 B
YAML
Raw Normal View History

2021-04-09 19:24:46 +08:00
name: HITL Trigger
2021-01-09 00:28:07 +08:00
on:
workflow_dispatch:
2021-04-21 21:03:28 +08:00
push:
branches:
- staging
- trying
2021-01-09 00:28:07 +08:00
jobs:
2021-04-09 19:36:35 +08:00
hitl-trigger:
2021-01-09 00:28:07 +08:00
runs-on: ubuntu-latest
environment: hitl
steps:
- uses: peter-evans/repository-dispatch@v1
with:
token: ${{ secrets.DISPATCH_PAT }}
2021-01-09 02:13:23 +08:00
event-type: stabilizer
2021-01-09 00:28:07 +08:00
repository: quartiq/hitl
2021-01-10 03:00:02 +08:00
client-payload: '{"github": ${{ toJson(github) }}}'
2021-04-09 17:25:58 +08:00
2021-04-09 18:33:54 +08:00
- name: Wait for startup
2021-04-09 18:34:41 +08:00
run: sleep 30
2021-04-09 18:33:54 +08:00
2021-04-09 17:27:27 +08:00
- uses: fountainhead/action-wait-for-check@v1.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
2021-04-09 19:35:23 +08:00
checkName: HITL Run Status
2021-04-09 17:27:27 +08:00
ref: ${{ github.event.pull_request.head.sha }}