Repository navigation
Open
Labels
priority: mediumMedium prioritystatus: in progressCurrently being worked ontype: ci / cdRelated to continuous integration / deliveryworkload: daysLikely takes days to resolve
Description
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-releasefor thepreparejob, 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, defaultmain; cloud-components releases fromdev) - no successful run of the CI workflow exists for a push of the commit (inputs
workflow, defaultci.yml, andci-branch, defaultdev) - the version doesn't match
CITATION.cff(version, and adate-released), or the package version that the caller passes (inputversion, read by the caller frompyproject.toml,package.json,pom.xmlorChart.yaml)
- Optional input
tag-prefixfor tags likechart-v1.0.0and<distribution>-v1.2.0 - Outputs
version,prerelease(same rule as publish-release'sauto) andsha, so that later jobs need no own parsing - Findings are error annotations; needs only
contents: readandactions: 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").
Metadata
Metadata
Assignees
Labels
priority: mediumMedium prioritystatus: in progressCurrently being worked ontype: ci / cdRelated to continuous integration / deliveryworkload: daysLikely takes days to resolve
Activity
test(check-release): test the latest release