CI: adjust the required
job to never be skipped.
While this fails a normal required status check, the merge group will succeed even if a required status check is skipped.
This commit is contained in:
parent
879601380d
commit
e55dec9615
6
.github/workflows/main.yaml
vendored
6
.github/workflows/main.yaml
vendored
|
@ -83,14 +83,14 @@ jobs:
|
||||||
name: docs
|
name: docs
|
||||||
path: docs/_build
|
path: docs/_build
|
||||||
|
|
||||||
required: # group all required workflows into one for the required status check
|
required: # group all required workflows into one to avoid reconfiguring this in Actions settings
|
||||||
needs:
|
needs:
|
||||||
- test
|
- test
|
||||||
- document
|
- document
|
||||||
|
if: always() && !contains(needs.*.result, 'cancelled')
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
steps:
|
steps:
|
||||||
- run: |
|
- run: ${{ contains(needs.*.result, 'failure') && 'false' || 'true' }}
|
||||||
true
|
|
||||||
|
|
||||||
publish-docs:
|
publish-docs:
|
||||||
needs: document
|
needs: document
|
||||||
|
|
Loading…
Reference in a new issue