Retry an existing release without building a new ZIP - #17
Merged
Merged
Conversation
A failed registry publish must be able to reuse the immutable GitHub release. Retry checks protected main, tag ancestry, plugin version, release target, and ZIP digest, then refuses to create another release.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
retry-tagandretry-sha256together. It checks that the tag commit is the current main commit or an ancestor, thatplugin.cfgmatches at the tag and on main, that the GitHub release target matches the tag, and that the downloaded@aviorstudio_gd-network.zipdigest matches the pin. It does not build a package or create a tag or release.@aviorstudio/gd-networkasset@aviorstudio_gd-network.zip, and drop the unsupportedversioninput. The normal bump path is unchanged aside from those publish inputs.Recovery dispatch (do not run from this PR)
Dispatch only from protected
mainafterGDAM_SECRET_KEYselected-repo visibility includes this repository, and only when explicitly authorized:bumpis ignored when both retry inputs are set. This does not move tagv0.0.4or replace its asset. Expected release target remains5db6b7fcafe79cc3809cd9cb27438ff5b64f6ea9.Test plan
shellcheckon the recovery script and negative-control test./tests/release_recovery_test.sh(controls=26 reached=11)v0.0.4release and ZIP digest85e7dc926971ee210af309e577c816300f83cfdef64ca131c4be5e785450c047plugin.cfg0.0.4is refused (v0.0.5is not created)cion this PRNeed help on this PR? Tag
@codesmith-botwith what you need. Autofix is disabled.