Commit 177143b
Sanitize Discord webhook URL and make changelog post non-fatal
The first real release post failed with `curl: (3) URL rejected: Malformed
input to a URL function` — the DISCORD_CHANGELOG_WEBHOOK secret carries a
trailing newline (captured by `gh secret set` when the value is pasted/piped
with one), which curl rejects as a malformed URL.
- Strip all whitespace from the webhook value before use. A webhook URL has
no internal whitespace, so this is safe and repairs the contaminated
secret without needing it re-set.
- Make the post non-fatal: the release already shipped before this step, so
a Discord failure now logs a ::warning:: annotation and exits 0 instead of
turning a successful release red. Also adds curl --retry for transient
network blips.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>1 parent 5d22c92 commit 177143b
1 file changed
Lines changed: 16 additions & 3 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
182 | 182 | | |
183 | 183 | | |
184 | 184 | | |
| 185 | + | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
185 | 192 | | |
186 | 193 | | |
187 | 194 | | |
| |||
208 | 215 | | |
209 | 216 | | |
210 | 217 | | |
211 | | - | |
212 | | - | |
213 | | - | |
| 218 | + | |
| 219 | + | |
| 220 | + | |
| 221 | + | |
| 222 | + | |
| 223 | + | |
| 224 | + | |
| 225 | + | |
| 226 | + | |
0 commit comments