---
name: 'Meta Workflow: Require Conditional Status 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:
interval: 20s
checks-yaml: |
- job: unit-test-go-core
paths:
- cmd/**
- pkg/**
- job: lint-go
- job: protobuf-check-generated
paths:
- proto/**
- pkg/protogen/**
- job: lint-protobuf
paths:
- proto/**
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:
interval: 20s
checks-filename: .github/monorepo/required-checks.yml
# ...
From a recent workflow run on public GitHub:
From a recent workflow on GitHub Enterprise:
- 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/require-conditional-status-checks
to determine which checks to enforce.
This GitHub Action is developed in the development
branch of this
repository, in particular via the command in cmd/requireconditional/
.
The documentation and source code for this action are maintained there. This branch is intended to be as small as possible so it can be loaded quickly when new jobs retrieve it when spawned as part of a GitHub Actions workflow. For more information on how this GitHub Action is developed, see the DEVELOPMENT document.