Skip to content

ci(check-ready): let the template itself cut version-marker releases - #37

Merged
annefou merged 1 commit into
mainfrom
fix/template-own-release
Sep 20, 2026
Merged

annefou merged 1 commit into
mainfrom
fix/template-own-release

Conversation

@annefou

@annefou annefou commented Sep 20, 2026

Copy link
Copy Markdown
Contributor

The archival workflows (Zenodo / Software Heritage / Wayback / Docker) guard on check-ready, which hard-fails a release event while .template-uninitialised is present. That correctly blocks releasing an un-initialised replication, but it also blocks the canonical template repo from cutting its own version-marker GitHub Release — the template is permanently uninitialised by design, so a Release currently produces four failed archival runs.

Fix: use GitHub's is_template flag (true only on the canonical template; false on any repo created from it via Use this template) to skip the archival pipeline green on the template's own release, while still hard-failing a release of a genuinely unready replication.

Verified locally (YAML valid + all four scenarios):

  • template + release + is_template=true → skip green ✅
  • unready replication + release + is_template=false → fail (exit 1) ✅ (guard preserved)
  • template + push → unchanged ✅
  • ready repo + release → ready=true ✅

After this merges, a GitHub Release can be cut on the template (e.g. to give v2.1.0 a visible Releases entry) without the archival jobs failing.

The release-path workflows (Zenodo / Software Heritage / Wayback / Docker)
guard on check-ready, which hard-fails a release event while the
.template-uninitialised sentinel is present. That is correct for a
scaffolded replication, but it also blocks the canonical template repo from
cutting its own version-marker GitHub Release (e.g. to mark v2.1.0), since
the template is permanently uninitialised by design.

Use GitHub's is_template flag (true only on the canonical template; false on
any repo created from it) to skip the archival pipeline green on the
template's own release, while still hard-failing a release of a genuinely
unready replication. Verified across all four scenarios.
@annefou
annefou merged commit 17b6abc into main Sep 20, 2026
3 checks passed
@annefou
annefou deleted the fix/template-own-release branch September 20, 2026 20:35
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