Commit f1fcf4e
fix(release): prevent infinite loop when CI workflow is not found
The release script was getting stuck in an infinite loop when no CI
workflow runs were found for the current commit. This happens when:
- The commit hasn't been pushed to GitHub yet
- CI hasn't been triggered for the commit
- CI workflow is not configured to run on the main branch
Changes:
- Add 90-second timeout for waiting for CI workflow to appear
- Return special exit code (3) when no workflow is found after timeout
- Prompt user to proceed without CI validation or cancel the release
- Provide helpful context about why CI might not be found
Behavior:
- Waits up to 90 seconds for CI workflow to appear
- If no workflow found after 90s, asks user:
"Do you want to proceed with the release anyway? (y/N)"
- If user confirms (y): Proceeds without CI validation
- If user declines (N): Cancels release with helpful message
This prevents the script from hanging indefinitely while still giving
users the option to proceed if they know CI is not configured or not
yet triggered for their commit.
Fixes: Infinite loop when checking CI status for unpushed commits
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>1 parent f361ad6 commit f1fcf4e
1 file changed
Lines changed: 32 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
| 203 | + | |
203 | 204 | | |
204 | 205 | | |
205 | 206 | | |
| |||
221 | 222 | | |
222 | 223 | | |
223 | 224 | | |
224 | | - | |
| 225 | + | |
| 226 | + | |
| 227 | + | |
| 228 | + | |
| 229 | + | |
| 230 | + | |
| 231 | + | |
225 | 232 | | |
226 | 233 | | |
227 | 234 | | |
| |||
245 | 252 | | |
246 | 253 | | |
247 | 254 | | |
248 | | - | |
| 255 | + | |
| 256 | + | |
| 257 | + | |
| 258 | + | |
| 259 | + | |
| 260 | + | |
249 | 261 | | |
| 262 | + | |
| 263 | + | |
| 264 | + | |
| 265 | + | |
| 266 | + | |
| 267 | + | |
| 268 | + | |
| 269 | + | |
| 270 | + | |
| 271 | + | |
| 272 | + | |
| 273 | + | |
| 274 | + | |
| 275 | + | |
| 276 | + | |
| 277 | + | |
| 278 | + | |
250 | 279 | | |
| 280 | + | |
251 | 281 | | |
252 | 282 | | |
253 | 283 | | |
| |||
0 commit comments