GitHub Action: Composite
Example Usage
---
name: All Checks
on:
pull_request:
branches:
- main
jobs:
meta:
runs-on:
- ubuntu-20.04
steps:
- name: Ensure All Conditional Checks Have Passed
uses: blend/[email protected]
with:
checks-yaml: |
- job: sleep1
- job: sleep2
paths:
- changed/**
- prefix/**
Alternatively, the checks-yaml
can be checked into a file in your repository
# ...
steps:
- name: Ensure All Conditional Checks Have Passed
uses: blend/[email protected]
with:
checks-filename: .github/monorepo/required-checks.yml
# ...
See It In Action
From a recent workflow run on public GitHub:
From a recent workflow on GitHub Enterprise:
Limitations
- The GitHub
CompareCommits()
API can return at most 300 files when comparing two commits. This makes it impossible to determine the full list of impacted files for PRs with 300 or more files. The list of files is critical forblend/action-composite
to determine which checks to enforce.
Development
For more information on how this GitHub Action is developed, see the DEVELOPMENT document.