Skip to content

Commit 1a9f5f5

Browse files
ci: rename workflow to CI, add ok aggregator gate (#12)
Rename docs-pr.yml → ci.yml and set workflow name to 'CI'. Add final 'ok' aggregator job that reports a single required check. The check name 'CI / ok' will become the sole required status check for branch protection once validated. Ref: anolis/working/branch-protection-plan/
1 parent 8194203 commit 1a9f5f5

1 file changed

Lines changed: 17 additions & 2 deletions

File tree

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Docs PR Checks
1+
name: CI
22

33
on:
44
pull_request:
@@ -9,12 +9,13 @@ permissions:
99
contents: read
1010

1111
concurrency:
12-
group: docs-pr-${{ github.event.pull_request.number || github.ref }}
12+
group: ci-${{ github.event.pull_request.number || github.ref }}
1313
cancel-in-progress: true
1414

1515
jobs:
1616
build:
1717
runs-on: ubuntu-latest
18+
timeout-minutes: 10
1819
steps:
1920
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6
2021

@@ -31,3 +32,17 @@ jobs:
3132

3233
- name: Build docs (includes dead-link validation)
3334
run: pnpm build
35+
36+
ok:
37+
name: ok
38+
if: always()
39+
needs: [build]
40+
runs-on: ubuntu-latest
41+
timeout-minutes: 5
42+
steps:
43+
- name: Evaluate job results
44+
run: |
45+
echo "Job results: ${{ toJSON(needs.*.result) }}"
46+
- name: Fail if any required job failed or was cancelled
47+
if: contains(needs.*.result, 'failure') || contains(needs.*.result, 'cancelled')
48+
run: exit 1

0 commit comments

Comments
 (0)