Skip to content

feat(ci): call the central workflow bodies instead of copying them - #31

Merged
TitusKirch merged 2 commits into
mainfrom
ci/central-workflow-bodies
Sep 1, 2026
Merged

TitusKirch merged 2 commits into
mainfrom
ci/central-workflow-bodies

Conversation

@TitusKirch

Copy link
Copy Markdown
Member

Replaces four copied workflows with calls into kirchDev/workflows@v0.1.1 — 649 lines become 101.

This repository is the estate's main-only case, which makes it the proof for the derivation: none of the fast-forward triggers carries a target branch, so the body asks whether a dev branch exists and lands on main because there is none. No file here states that. The copies carried INTEGRATION_BRANCH: main as a literal that had to be kept in step with the trigger by hand.

The gate also picks up pnpm validate from package.json without being told it exists.

Two savings come along: the analysis runs once per change rather than twice (a push to an integration branch always has a PR open on it, and that PR run scans the same tree), and a prose-only change skips the gate.

Check names change to <caller-job> / <body-job> — a branch-protection rule on an old name would wait forever.

649 lines of workflow become 101 of trigger.

This repo is the estate's main-only case, and it is what the derivation was
built for: none of the fast-forward triggers carries a target branch, so the
body asks whether a dev branch exists and lands on main because there is none.
Nothing in these files states that — the copies carried INTEGRATION_BRANCH: main
as a literal that had to be kept in step with the trigger by hand.

The gate picks up pnpm validate from package.json without being told it exists.

The analysis now runs once per change rather than twice, and a prose-only change
skips the gate.
Two bodies invoked by one caller shared a concurrency group and cancelled each
other — github.workflow resolves to the CALLER's name inside a called workflow,
so every body using the conventional expression collided. v0.1.2 gives each
group the body's own name.
@TitusKirch
TitusKirch merged commit 0c566b8 into main Sep 1, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

1 participant