shoc-pr-review-runner/.github/workflows/ci.yaml
Adam Moussa 068e6a7c48
ci: emit the ci / ci status context required by the org ruleset
The org main-branch ruleset requires the status context `ci / ci`. A job
defined directly in a workflow emits only its job name, so this repo's CI
published `ci` and could never satisfy that rule. The two-part context comes
from a reusable-workflow call, named `<caller job> / <called job>`.

Move the checks into a local reusable and leave ci.yaml as a thin caller, which
is also the structural convention the org reusables follow. No org reusable
fits a bash and workflow tooling repo, so the reusable lives here.
2026-07-29 12:17:44 -04:00

17 lines
452 B
YAML

name: ci
# Thin caller, matching the org convention. The job id `ci` calling a reusable
# whose job id is also `ci` produces the status context `ci / ci`, which is the
# check the org "main branch protection" ruleset requires. A job defined
# directly here would emit only `ci` and would never satisfy that rule.
on:
pull_request:
branches: [main]
permissions:
contents: read
jobs:
ci:
uses: ./.github/workflows/ci-runner-checks.yaml