Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Latest commit

 

History

History

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

check-required-lite

A GitHub Action which checks if the given steps have completed successfully.

By contrast with check-required, this action does not require a GitHub app.

You must call the action as follows. The if clause is essential, as is the needs-context. The only part of this invocation which you vary is the contents of the needs: list.

all-required-checks-complete:
  needs: [some-previous-step, another-step]
  if: ${{ always() }}
  runs-on: ubuntu-latest
  steps:
    - uses: G-Research/common-actions/check-required-lite@main
      with:
        needs-context: ${{ toJSON(needs) }}

Inputs

needs-context

You must supply this, and you should always supply it as ${{ toJSON(needs) }}. This is how the action knows which steps we depended on.

Why?

Because required status checks are not actually required. This action works around this by demanding that you call it with if: ${{ always() }}, so it really is required.