Merge pull request #3937 from continuedev/nate/pr-checks
allow merge even when pr_checks is skipped
This commit is contained in:
commit
3ce74b8248
1 changed files with 28 additions and 0 deletions
28
.github/workflows/pr_checks_skip.yaml
vendored
Normal file
28
.github/workflows/pr_checks_skip.yaml
vendored
Normal file
|
|
@ -0,0 +1,28 @@
|
|||
# When none of the paths are matched for the pr_checks.yaml workflow
|
||||
# we still need the require-all-checks-to-pass job to pass
|
||||
name: PR checks skip
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- docs/**
|
||||
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
paths:
|
||||
- docs/**
|
||||
|
||||
jobs:
|
||||
require-all-checks-to-pass:
|
||||
if: always()
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Decide whether the needed jobs succeeded or failed
|
||||
uses: re-actors/alls-green@release/v1
|
||||
with:
|
||||
allowed-failures:
|
||||
allowed-skips:
|
||||
jobs: []
|
||||
Loading…
Add table
Reference in a new issue