Commit 06f90e3
fix(release): select wheel binary by target, not both patterns (#1596)
`unzip -joq "${whl}" '*/scripts/mergify' '*/scripts/mergify.exe'`
returns exit code 11 ("no matching files") for whichever pattern
doesn't apply — every wheel ships exactly one of the two binaries,
never both. The 11 propagates under `set -euo pipefail` and kills
the script even when the other pattern extracted cleanly.
Symptom in production: the 2026.6.15.1 draft attempt
(https://github.com/Mergifyio/mergify-cli/actions/runs/27546073002)
failed at the Extract step on the Linux x86_64 wheel — the only
output before the bail was `caution: filename not matched:
*/scripts/mergify.exe`. Wheels themselves were fine.
Fix: pick the binary name up front from the target string
(`mergify.exe` for windows, `mergify` otherwise) and pass `unzip`
the single matching pattern. The two-arm if/else below already
needed a target check, so the cost is paid once and shared.
Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>1 parent b67c59f commit 06f90e3
1 file changed
Lines changed: 15 additions & 4 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
104 | 104 | | |
105 | 105 | | |
106 | 106 | | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
107 | 118 | | |
108 | 119 | | |
109 | 120 | | |
110 | 121 | | |
111 | | - | |
| 122 | + | |
112 | 123 | | |
113 | | - | |
| 124 | + | |
114 | 125 | | |
115 | | - | |
116 | | - | |
| 126 | + | |
| 127 | + | |
117 | 128 | | |
118 | 129 | | |
119 | 130 | | |
| |||
0 commit comments