Skip to content

fix: add render-template workflow and deduplicate Renovate detection#7

Merged
wgordon17 merged 9 commits intogordon-code:mainfrom
wgordon17:fix/renovate-post-upgrade
Mar 18, 2026
Merged

fix: add render-template workflow and deduplicate Renovate detection#7
wgordon17 merged 9 commits intogordon-code:mainfrom
wgordon17:fix/renovate-post-upgrade

Conversation

@wgordon17
Copy link
Member

@wgordon17 wgordon17 commented Mar 18, 2026

Summary

  • Adds render-template.yaml workflow that re-renders root files when Renovate pushes to includes/ or template/ on renovate/** branches
  • Conditionally runs nix flake lock when flake.nix inputs change (e.g. copier-flake digest update)
  • Removes redundant custom regex Manager 1 — built-in github-actions manager already handles SHA-pinned actions natively
  • Adds packageRule disabling built-in github-actions for template/** to prevent duplicate detection with the template regex manager
  • Removes dead template/flake.nix.jinja pattern from copier-flake manager
  • Adds test for the new packageRule (test_renovate_template_suppresses_builtin_gha)

@wgordon17
Copy link
Member Author

Replaced the broken postUpgradeTasks approach (Renovate runs in Docker — Nix unavailable) with a separate GHA workflow.

What it does:

  • render-template.yaml triggers on pushes to renovate/** branches when includes/ or template/ files change
  • Installs Nix, runs just render, restores .copier-answers.yaml, commits if there's drift
  • Propagates SHA changes from includes (source of truth) to derived root files (e.g. flake.nix)

No-loop safety:

  • just render only modifies root files, not includes/ or template/ — paths filter prevents re-trigger
  • GITHUB_TOKEN pushes don't trigger workflows (GitHub docs)

Consistency:

  • render-template.yaml added to justfile restore list — survives just render
  • Reverted nix-setup/RENOVATE_ALLOWED_POST_UPGRADE_COMMANDS from Renovate workflow (not needed)
  • Reverted postUpgradeTasks from Renovate config (Docker container can't run Nix)
  • Kept managerFilePatterns simplification for copier-flake (only scans source-of-truth include)

Verified:

  • nix develop -c just render works from minimal PATH
  • Zero drift after render (consistency check passes)
  • renovate-config-validator --strict passes
  • 54 tests pass
  • CI green (checks + consistency)

- Removes custom regex Manager 1 (workflow scanner) — the built-in
  github-actions manager already detects SHA-pinned actions natively
- Adds packageRule to disable built-in github-actions for template/**
  paths, preventing duplicate detection with the template regex manager
- Removes dead template/flake.nix.jinja pattern from copier-flake
  manager (file has raw Jinja includes, not expanded URLs)
@wgordon17 wgordon17 changed the title fix: re-render template after Renovate dependency updates fix: add render-template workflow and deduplicate Renovate detection Mar 18, 2026
@wgordon17 wgordon17 merged commit ad4f0ac into gordon-code:main Mar 18, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant