mirror of
https://github.com/Sea-Haven-Industries/shoc-pr-review-runner.git
synced 2026-09-30 08:53:18 +00:00
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.
17 lines
452 B
YAML
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
|