Commit c850034
committed
fix(wait-for-hydra): send debug echo to stderr in poll_github
The poll_github function echoes a "Querying: ..." debug line to stdout.
Since poll_wait captures its output via conclusion=$(poll_github), the
conclusion variable contains the debug line concatenated with the actual
gh api result — a multi-line string like "Querying: ...\nsuccess".
The case "$conclusion" in poll_wait never matches "success" because
the variable isn't a bare keyword — it's the debug text plus the result.
This causes the action to loop until timeout even when the check has
already passed.
Fix: redirect debug echo to stderr (>&2) so only the gh api result
is captured by the caller.1 parent 1388cec commit c850034
1 file changed
Lines changed: 2 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
213 | 213 | | |
214 | 214 | | |
215 | 215 | | |
216 | | - | |
| 216 | + | |
217 | 217 | | |
218 | 218 | | |
219 | 219 | | |
220 | 220 | | |
221 | 221 | | |
222 | 222 | | |
223 | 223 | | |
224 | | - | |
| 224 | + | |
225 | 225 | | |
226 | 226 | | |
227 | 227 | | |
| |||
0 commit comments