Merge #349
349: HITL Check Update r=ryan-summers a=ryan-summers Updating the HITL workflow to create the check locally before having the remote repository create it. This makes it belong to a deterministic test suite and always exist Co-authored-by: Ryan Summers <ryan.summers@vertigo-designs.com>
This commit is contained in:
commit
339332d815
|
@ -1,5 +1,6 @@
|
||||||
block_labels = [ "S-blocked" ]
|
block_labels = [ "S-blocked" ]
|
||||||
delete_merged_branches = true
|
delete_merged_branches = true
|
||||||
|
timeout_sec = 1200
|
||||||
status = [
|
status = [
|
||||||
"style",
|
"style",
|
||||||
"test (stable)",
|
"test (stable)",
|
||||||
|
|
|
@ -12,15 +12,25 @@ jobs:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
environment: hitl
|
environment: hitl
|
||||||
steps:
|
steps:
|
||||||
|
- uses: LouisBrunner/checks-action@v1.1.1
|
||||||
|
id: hitl-check
|
||||||
|
with:
|
||||||
|
repo: ${{ github.repository }}
|
||||||
|
sha: ${{ github.event.head_commit.id }}
|
||||||
|
token: ${{ github.token }}
|
||||||
|
name: HITL Run Status
|
||||||
|
status: in_progress
|
||||||
|
details_url: "https://github.com/${{github.repository}}/actions/runs/${{github.run_id}}"
|
||||||
|
output: |
|
||||||
|
{"summary": "Starting..."}
|
||||||
|
|
||||||
- uses: peter-evans/repository-dispatch@v1
|
- uses: peter-evans/repository-dispatch@v1
|
||||||
with:
|
with:
|
||||||
token: ${{ secrets.DISPATCH_PAT }}
|
token: ${{ secrets.DISPATCH_PAT }}
|
||||||
event-type: stabilizer
|
event-type: stabilizer
|
||||||
repository: quartiq/hitl
|
repository: quartiq/hitl
|
||||||
client-payload: '{"github": ${{ toJson(github) }}}'
|
client-payload: |
|
||||||
|
{"github": ${{ toJson(github) }}, "check_id": ${{steps.hitl-check.outputs.check_id}}}
|
||||||
- name: Wait for startup
|
|
||||||
run: sleep 30
|
|
||||||
|
|
||||||
- uses: fountainhead/action-wait-for-check@v1.0.0
|
- uses: fountainhead/action-wait-for-check@v1.0.0
|
||||||
with:
|
with:
|
||||||
|
|
Loading…
Reference in New Issue