Skip to content

ci: share the release tag checks #82

Open

Description

@uniqueg

Why

Every release workflow starts with the same checks of the tag and the commit, and each repo has its own copy of them (12 copies, plus this repo's release.sh check). The copies differ: TESK and cloud-components check that the tag is annotated, the others rely on the tag object API; the CI check filters by branch and event in some repos only; the version is compared with CITATION.cff in different ways (sed, yq, Python), and date-released is required in TESK and krini only. One action keeps the checks equal everywhere, and Dependabot updates them in one place.

Expected result

  • A new composite action actions/check-release for the prepare job, which fails before anything is built if:
    • the tag is not annotated, or its signature isn't verified by GitHub
    • the tag doesn't point to the event commit (github.sha)
    • the commit is not on the release branch (input branch, default main; cloud-components releases from dev)
    • no successful run of the CI workflow exists for a push of the commit (inputs workflow, default ci.yml, and ci-branch, default dev)
    • the version doesn't match CITATION.cff (version, and a date-released), or the package version that the caller passes (input version, read by the caller from pyproject.toml, package.json, pom.xml or Chart.yaml)
  • Optional input tag-prefix for tags like chart-v1.0.0 and <distribution>-v1.2.0
  • Outputs version, prerelease (same rule as publish-release's auto) and sha, so that later jobs need no own parsing
  • Findings are error annotations; needs only contents: read and actions: read
  • Tests in tests/check-release/, a README, and an entry in the repository's README
  • Adopted by a first repo in a separate PR after the next .github release (candidate: tesk-api after 2.0.0)

Part of #65 (third checkbox: "Check the release tag").

Activity

  1. self-assigned this
    on Nov 16, 2026
  2. added
    priority: medium
    status: in progress
    type: ci / cd
    workload: days
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

priority: mediumstatus: in progresstype: ci / cdworkload: days

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions