Commit e89436b
release.yml: fix gh CLI misuse in the post-retry size re-check
The verify-and-retry step itself was crashing: `gh release view ... --jq
--arg name "$name" '...'` mixes gh's own --jq flag (which takes exactly one
filter-string argument) with jq's --arg flag, which gh doesn't understand as
a passthrough. Everything after --jq's first token became extra positional
arguments to `release view` (which only accepts one, the tag) — worse
because this run's asset was actually named "Modelforge Setup 1.1.1.exe"
(with spaces, the real electron-builder default), so gh saw 4 stray
positional args and failed immediately with "accepts at most 1 arg(s),
received 4" before ever getting to retry the upload.
Fixed by re-fetching the full asset JSON via gh (as elsewhere in this
script) and piping it through a plain `jq --arg` call, the same safe
pattern already used for the first size check. Verified the underlying
name/size-lookup logic against mock data (ghost asset correctly flagged,
correctly-sized asset correctly skipped) since jq itself isn't installable
in this sandbox without sudo — GitHub Actions runners have it by default.
Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>1 parent f16bbbb commit e89436b
1 file changed
Lines changed: 10 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
180 | 180 | | |
181 | 181 | | |
182 | 182 | | |
183 | | - | |
184 | | - | |
| 183 | + | |
| 184 | + | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
| 192 | + | |
185 | 193 | | |
186 | 194 | | |
187 | 195 | | |
| |||
0 commit comments