Skip to content

The version check knows a released version by its release tag - #39

Merged
augustak merged 1 commit into
masterfrom
version-check-release-tags
Dec 2, 2026
Merged

augustak merged 1 commit into
masterfrom
version-check-release-tags

Conversation

@augustak

@augustak augustak commented Dec 2, 2026

Copy link
Copy Markdown
Member

The version check from #38 looked the version up on Maven Central. Central rate limits the IP addresses that GitHub's runners share, so on #37 the lookup returned 429 Too Many Requests and the check failed.

Every release is published from a GitHub release tagged v<version> (#37), so the check now counts a version as released if the repository has that tag. It looks the tag up with git ls-remote and needs no outside service. If the tags can't be listed at all, the check fails with an error, rather than treating the version as unreleased.

Testing

I ran the check's script under bash -e, as Actions runs it, against simulated PR merge commits and a local origin:

PR changes Tag v4.0.1 on origin Result
Client.java no pass, not released
Client.java yes fail, already released
README.md yes pass, library unchanged
build.gradle origin unreachable fail, can't list tags

Note

Versions 4.0.0 and earlier have no tags, because they were published before releases came from GitHub. Since the version is already 4.0.1, this only matters if someone moves the version back. Tagging the old releases (for example v4.0.0 at bf6a0d8) would close that gap.

🤖 Generated with Claude Code

Maven Central rate limits the IP addresses that GitHub's runners share, so
looking the version up there failed the check with 429 Too Many Requests.
Every release is a GitHub release tagged v<version>, so the check looks for
that tag in the repository instead.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@augustak
augustak merged commit 28ca5b7 into master Dec 2, 2026
2 of 3 checks passed
@augustak
augustak deleted the version-check-release-tags branch December 2, 2026 15:28
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