Skip to content

chore: re-adopt the template from github-workflows v0.1.0 #116

Done

Description

@dan-petty

Problem

The reusable workflows and the repository template moved from dan-petty/infra to dan-petty/github-workflows (dan-petty/infra#217). A release of infra after the move holds neither, and dan-petty/infra#235 turns off the Renovate github-actions and copier managers for each form of the name of infra. This repository still renders the template of infra v0.25.3 and calls its workflows.

Change

  • Set _src_path: https://github.com/dan-petty/github-workflows.git in .copier-answers.yml and run copier recopy --skip-answered --defaults --overwrite --vcs-ref v0.1.0. The answers stay. The callers pin the commit of the tag v0.1.0 (39f92fb).
  • Merge after feat: call the workflows of github-workflows infra#235: the Renovate presets must name dan-petty/github-workflows first.

Done when

  • .copier-answers.yml names _commit: v0.1.0, and a recopy at v0.1.0 with the same answers changes no file.
  • No workflow calls dan-petty/infra/.github/workflows.
  • The pull request passes the checks of this repository.

Proposed design

Problem statement

The reusable workflows and the repository template moved from dan-petty/infra to dan-petty/github-workflows. This repository still renders the infra template at v0.25.3 and calls the infra workflows. The change points .copier-answers.yml at github-workflows and recopies at tag v0.1.0. The pull request merges after dan-petty/infra#235.

Acceptance criteria

Requirement: answers-name-github-workflows

.copier-answers.yml SHALL name _src_path: https://github.com/dan-petty/github-workflows.git and _commit: v0.1.0.

Scenario: Recopy at v0.1.0 changes no file

  • WHEN copier recopy --skip-answered --defaults --overwrite --vcs-ref v0.1.0 runs on a clean worktree after the change
  • THEN git status --porcelain prints no line

Requirement: workflows-call-github-workflows

Every workflow SHALL call the reusable workflows of dan-petty/github-workflows at the commit of tag v0.1.0 and MUST NOT call dan-petty/infra/.github/workflows.

Scenario: No workflow names infra

  • WHEN rg --files-with-matches dan-petty/infra .github/workflows runs at the root of the repository
  • THEN the command prints no path and exits with status 1

Requirement: workflow-checks-pass

The changed workflows SHALL pass the workflow checks of this repository.

Scenario: Workflow lint

  • WHEN uv run devops ci --check --only actionlint,zizmor runs on the pull request
  • THEN the command exits 0 and reports no finding

Existing Tool Considered

No alternatives check has run. Copier (https://copier.readthedocs.io/) covers the need: copier recopy --skip-answered --defaults --overwrite --vcs-ref v0.1.0 renders the github-workflows template at tag v0.1.0 with the same answers. Copier lacks a way to edit the Renovate presets of dan-petty/infra, and dan-petty/infra#235 does that. The change builds no code and keeps no code.

Key questions

  • Which file holds the template source and the answers today?: .copier-answers.yml holds _commit: v0.25.3 and _src_path: https://github.com/dan-petty/infra.git today. Every other line of the file is an answer, and each answer stays. [sources: .copier-answers.yml:2, .copier-answers.yml:3]
  • How does the repository move the template source to github-workflows?: Edit _src_path in .copier-answers.yml to the github-workflows URL. Then run copier recopy --skip-answered --defaults --overwrite --vcs-ref v0.1.0. Copier writes every other line, and it records _commit: v0.1.0. (best practice) [sources: .copier-answers.yml:1, .copier-answers.yml:3]
    • Chosen: Edit _src_path and run copier recopy. No copier command changes _src_path. The recopy renders the new template with the same answers and records _commit: v0.1.0.
    • Rejected: Run copier update --data. It renders from the recorded source, infra, and it changes answers only. It cannot move the source to github-workflows.
    • Rejected: Edit each workflow by hand. The files then differ from the template, and the next recopy overwrites them.
  • Which proof shows that the answers and the rendered files agree?: Run the recopy again at v0.1.0 on a clean worktree. git status --porcelain must print nothing. A test that reads .copier-answers.yml proves nothing, because a test asserts no value of a config file. (best practice) [sources: AGENTS.md]
    • Chosen: Live recopy, then git status --porcelain. It proves that the rendered tree matches the recorded answers at tag v0.1.0.
    • Rejected: A test that reads .copier-answers.yml. A test asserts no value of a config file, and the test does not run Copier.

Fit

Fits in one pull request.

Suspected block

dan-petty/infra#235 must merge first: the Renovate presets must name dan-petty/github-workflows before this pull request merges.

Dependencies

None.

Activity

  1. added
    type/chore
    on Nov 28, 2026
  2. dan-petty commented on Nov 28, 2026

    @dan-petty
    OwnerAuthor
  3. added
    status/new
    value/medium
    effort/low
    source/agent
    priority/p2-medium
    owner/agent
    on Nov 28, 2026
  4. devops-cli-service commented on Nov 28, 2026

    @devops-cli-service
    Contributor

    Owner question: See Suspected block in the section Proposed design of the body.

    Options

    1. Decide the question: The job refines the item with your answer.
    2. Leave it to the job: The job records the best-practice answer and goes on.

    Recommendation: Decide the question: only a person can answer it.

    Evidence

  5. added
    status/in-progress
    status/in-review
    and removed
    status/new
    status/in-progress
    on Nov 28, 2026
  6. removed
    status/in-review
    owner/agent
    on Nov 28, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    effort/lowpriority/p2-mediumsource/agenttype/chorevalue/medium

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions