pounder_test/.github/workflows/hitl.yml

28 lines
656 B
YAML
Raw Normal View History

2021-04-09 17:43:30 +08:00
name: HITL Run Request
2021-01-09 00:28:07 +08:00
on:
workflow_dispatch:
pull_request:
branches: [ master ]
2021-01-09 00:28:07 +08:00
jobs:
2021-01-09 02:04:59 +08:00
hitl:
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 }}
checkName: HITL
ref: ${{ github.event.pull_request.head.sha }}