Repository navigation
fix(release): the draft job checks out before it downloads, and names a missing asset - #12
Merged
Merged
Conversation
… a missing asset - actions/checkout cleans the workspace (clean: true), so the artifact download that ran first was deleted: the draft job of run 47001450146 saw only the two literal names and gh failed with "no matches found" (issue #11). The checkout now runs before the download. - The asset loop checks each file: a literal word stays in a bash array under nullglob, so the miss is named here (::error::missing asset) instead of surfacing as gh's own message.
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.
Fixes #11.
What | 内容
The
draft releasejob of the Release workflow ran its steps in an order that could not work:actions/download-artifactunpacked the package intodist/, thenactions/checkout(added by #10 to readdocs/release-notes/<version>.md) ran with its defaultclean: trueand printedDeleting the contents of '/home/runner/work/gitany/gitany'— the download was gone before the draft step looked at it. Run 47001450146 failed withno matches found for dist/SHA256SUMS, and 2026.12.3.3 got no draft.::error::missing asset: <path>) instead of echoing a literal that bash keeps in the array undernullglob, which is how the failure reachedghas something else.Verification | 验证
yaml.safe_load), and thepublishjob's steps are now checkout → download-artifact → draft.api.github.com's job-log redirect (nogh):Total of 2 artifact(s) downloadedat00:22:46,Deleting the contents of ...at00:22:46.6, the loop's two literal names at00:22:48.5,no matches foundat00:22:51.changesjob and the pack path; the corrected order runs on the nextworkflow_dispatch, which creates the 2026.12.3.3 draft.Authorship | 作者
Authorship: ai-and-human
Agent: omp
Model: glm-5.4