Skip to content

fix(release): the draft job checks out before it downloads, and names a missing asset - #12

Merged
speak-agent merged 1 commit into
mainfrom
fix/release-publish-order
Dec 3, 2026
Merged

speak-agent merged 1 commit into
mainfrom
fix/release-publish-order

Conversation

@speak-agent

Copy link
Copy Markdown
Collaborator

Fixes #11.

What | 内容

The draft release job of the Release workflow ran its steps in an order that could not work: actions/download-artifact unpacked the package into dist/, then actions/checkout (added by #10 to read docs/release-notes/<version>.md) ran with its default clean: true and printed Deleting the contents of '/home/runner/work/gitany/gitany' — the download was gone before the draft step looked at it. Run 47001450146 failed with no matches found for dist/SHA256SUMS, and 2026.12.3.3 got no draft.

  • The checkout now runs before the artifact download, with the reason in a comment.
  • The asset loop names a missing file itself (::error::missing asset: <path>) instead of echoing a literal that bash keeps in the array under nullglob, which is how the failure reached gh as something else.

Verification | 验证

  • The workflow parses (yaml.safe_load), and the publish job's steps are now checkout → download-artifact → draft.
  • The failing job's log, from api.github.com's job-log redirect (no gh): Total of 2 artifact(s) downloaded at 00:22:46, Deleting the contents of ... at 00:22:46.6, the loop's two literal names at 00:22:48.5, no matches found at 00:22:51.
  • This pull request's own CI runs the workflow's changes job and the pack path; the corrected order runs on the next workflow_dispatch, which creates the 2026.12.3.3 draft.

Authorship | 作者

Authorship: ai-and-human
Agent: omp
Model: glm-5.4

… 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.
@speak-agent
speak-agent merged commit 9137e93 into main Dec 3, 2026
11 checks passed
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.

the release draft job has nothing to upload: the sparse checkout deletes the downloaded artifacts

2 participants