Repository navigation
build: let a run of the release workflow that failed half-way be run again - #2059
Merged
lagergren merged 1 commit intoNov 22, 2026
Merged
Conversation
…again The first run for 0.30.0 published the plugin and pushed the tag, and then failed to push the next version to main. The runs after it failed at the steps it had done, so 0.30.0 got neither the next version on main nor its GitHub release. Each step now skips what an earlier run of the release did: the run goes on from an existing tag, publishes only a version that the Marketplace doesn't have, sets the next version only if main doesn't have it yet, on top of main if main moved on, creates only a missing GitHub release, and replaces an uploaded asset.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #2059 +/- ##
==========================================
+ Coverage 49.49% 49.51% +0.02%
==========================================
Files 813 813
Lines 33350 33350
Branches 5195 5195
==========================================
+ Hits 16505 16513 +8
+ Misses 14272 14264 -8
Partials 2573 2573 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Collaborator
Author
|
@coderabbitai review |
Action not completed
|
Collaborator
Author
|
@coderabbitai review |
Action performed
|
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.
Proposed in #1940.
The first run of the release workflow for 0.30.0 published the plugin to the Marketplace and pushed the tag
0.30.0, and then failed at Increment Plugin Version, as the Main protection ruleset refused its push tomain(GH013: Repository rule violations). The two runs after it failed at steps that the first one had done: one at Publish Plugin to JetBrains Marketplace, as the Marketplace already had 0.30.0, and one at Tag Release, as the tag already existed. So 0.30.0 never got the next version onmain, nor its GitHub release with the release notes.Each step now skips what an earlier run of the same release did:
main.mainstill has the SNAPSHOT of the released version. Ifmainhas moved on since the release commit, which can then not be pushed on top of it,maingets the next version only, and the tag keeps the release commit; before, the push failed. For this check,actions/checkoutfetches the whole history (fetch-depth: 0).--clobber).A run without an earlier run of the same release goes as before.
Test: actionlint finds nothing new; its five notes about unquoted variables are on lines that this doesn't change. A simulation of the git steps, run against a local bare repository with the scripts of the steps extracted from the workflow, gives the expected
mainand tag in five cases: a run without failure; a run that fails at the increment and is run again; one that fails at the increment, after which a commit lands onmainand a new run starts; a run that went through and is run again; and a commit that lands onmainduring the run. The Marketplace check finds 0.30.0 and 0.30.1, doesn't find 0.30.2, and publishes when the API can't be reached. The workflow itself can only be tried with a release.