Documentation
¶
Overview ¶
Command publishcheck is publish-check.yml's checker: "publishing must be deterministic". It reads a repository's v* tags and its releases (the JSON that gh api --paginate --slurp prints) and prints one line per violation of:
R1 every v* tag has a release: a published one, or a draft younger than 2 h (R3 flags a draft older than that);
a release-candidate tag (vX.Y.Z-rcN) with no release at all is exempt
R2 published releases, release candidates excluded, were published in version order: by semver, published_at
never goes down; each adjacent pair where a lower version came out after a higher one is reported
R3 no draft release, an rc draft included, is older than 2 h, measured from the draft's last upload (see
draftTime)
go run ./scripts/publishcheck -repo <owner/name> -tags tags.json -releases releases.json [-now <RFC3339>]
Exit 0: no violation. Exit 1: violations, one per line on stdout. Exit 2: usage or an unreadable input.