Skip to content

Latest commit

 

History

History
24 lines (20 loc) · 849 Bytes

08.C-Add-Wait-For-Steps.md

File metadata and controls

24 lines (20 loc) · 849 Bytes

Wait for step to complete Action

You can use the following code snippet to add wait for completion of steps. This will allow you to make decisions on where another step from another job has completed, and what you want to do from that event.

- name: Wait for app build success
  uses: fountainhead/[email protected]
  id: wait-for-build-success
  with:
    token: ${{ secrets.GITHUB_TOKEN }}
    checkName: CI
    ref: ${{ github.event.pull_request.head.sha || github.sha }}

- name: Perform Some Step
  if: steps.wait-for-build-success.outputs.conclusion == 'success'
  run: echo "We have success"

- name: Error message on failure
  if: steps.wait-for-build-success.outputs.conclusion == 'failure'
  run: echo "ERROR! Build failure!

Linkage

  • Wait for check