chore(ci): add aggregator job reporting the org-required 'ci / ci' context
exec-aide's caller jobs are named python/typescript, so the org ruleset's required 'ci / ci' status check never reported here and every PR was merge-blocked for non-admins. The aggregator needs all real CI jobs and fails if any failed or was cancelled.
This commit is contained in:
parent
3b381a6aeb
commit
2dfba4b662
1 changed files with 12 additions and 0 deletions
12
.github/workflows/ci.yaml
vendored
12
.github/workflows/ci.yaml
vendored
|
|
@ -13,3 +13,15 @@ jobs:
|
||||||
uses: Sea-Haven-Industries/.github/.github/workflows/ci-typescript-cdk.yaml@main
|
uses: Sea-Haven-Industries/.github/.github/workflows/ci-typescript-cdk.yaml@main
|
||||||
with:
|
with:
|
||||||
run-cdk-synth: false
|
run-cdk-synth: false
|
||||||
|
# Aggregator producing the org-required "ci / ci" status context.
|
||||||
|
# Caller jobs here have distinct names (python, typescript), so the
|
||||||
|
# org ruleset's required check would otherwise never report.
|
||||||
|
ci:
|
||||||
|
name: ci / ci
|
||||||
|
needs: [python, typescript]
|
||||||
|
if: always()
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: All CI jobs passed
|
||||||
|
run: |
|
||||||
|
[ "${{ contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled') }}" = "false" ]
|
||||||
|
|
|
||||||
Reference in a new issue