Repository navigation
The NuGet workflow publishes an existing tag by hand - #2445
Merged
Merged
Conversation
A release event runs the workflow as it stood at the tagged commit, so a release whose publish failed cannot be retried under a newer workflow by re-running it. A workflow_dispatch with the tag checks the tag out and packs it as the release would, with the login from the default branch's workflow, which is the one the trusted-publishing policy names. The tag reaches the shell through the environment rather than interpolated into the script. 2.7.0's run failed on the expired API key before #2444; this publishes it. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #2445 +/- ##
=======================================
Coverage 86.93% 86.93%
=======================================
Files 316 316
Lines 70574 70574
Branches 20613 20613
=======================================
+ Hits 61355 61356 +1
Misses 4946 4946
+ Partials 4273 4272 -1
Flags with carried forward coverage won't be shown. Click here to find out more. 🚀 New features to boost your workflow:
|
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.
Follow-up to #2444, to publish 2.7.0.
2.7.0's release run (43545938674) failed all four pushes on the expired API key. Re-running it does not help, because a release event runs
Nuget.ymlas it stood at the tagged commit, which has the old key and noid-tokenpermission.This adds a
workflow_dispatchtrigger with ataginput:Nuget.yml, the file the trusted-publishing policy names. The file is not renamed.The tag reaches the shell through
envrather than being interpolated into the script.After merge:
gh workflow run Nuget.yml -f tag=v2.7.0.🤖 Generated with Claude Code