Reusable-workflow callers for member repos
The shared reusable GitHub Actions workflows (python-ci.yml and
python-docs.yml) live in the damien-robotsix/robotsix-github-workflows
repository. A member repo wires up CI and docs by adding small caller
workflows that reference them across repos.
Hand-authoring these callers recurrently goes wrong in two ways, each
producing a startup_failure ("workflow file issue") that turns the
repo's main red and masks every real gate behind it:
- Wrong org. Callers reference
uses: robotsix/robotsix-github-workflows/.github/workflows/...@main. The org isdamien-robotsix, notrobotsix;robotsix/robotsix-github-workflowsdoes not resolve. - Missing permissions grant. The reusable
python-ci.ymltestsjob declarespermissions: security-events: write(and needscontents: readfor private checkout). A calling job that grants nopermissions:block cannot provide what the reusable workflow requests →startup_failure.
[!note] mill's OWN callers (
.github/workflows/ci.yml,docs.yml) also use the cross-repo form below, pinned to a concrete commit SHA. Every repo — including mill itself — must use the CROSS-REPO form; there is no local./...form for these workflows.
New repos get these callers from their language template repo; for any other repo, add them manually by copying the snippets below.
.github/workflows/ci.yml
name: CI
on: [pull_request, push]
permissions:
contents: read
jobs:
ci:
permissions:
contents: read
security-events: write
uses: damien-robotsix/robotsix-github-workflows/.github/workflows/python-ci.yml@main
.github/workflows/docs.yml
name: Docs
on:
push:
branches: [main]
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
permissions:
contents: read
jobs:
deploy:
permissions:
contents: write
uses: damien-robotsix/robotsix-github-workflows/.github/workflows/python-docs.yml@main