Skip to content
This repository was archived by the owner on Dec 15, 2024. It is now read-only.

Smaug123/all-required-checks-complete-action

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

all-required-checks-complete-action

This is archived in favour of the G-Research fork.

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

You must call it 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: Smaug123/all-required-checks-complete-action
      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. You call this workflow in a step with if: ${{ always() }}, so it really is required.

About

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

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published