Commit 2c3b7b9
fix: exit cleanly when no programs are due in scheduling pre-step
Change process.exit(1) to process.exit(0) when no programs are due for
a scheduled run. The non-zero exit was causing the workflow to show as
failed (red X) in the Actions UI even though "no programs due" is an
expected outcome.
Also add a `not_due` flag to the JSON sentinel written to
/tmp/gh-aw/autoloop.json so the agent step can explicitly detect
this case, and document it in the agent instructions.
Agent-Logs-Url: https://github.com/githubnext/autoloop/sessions/4d303a41-1658-4db8-bd17-24f7ed43d323
Co-authored-by: mrjf <180956+mrjf@users.noreply.github.com>1 parent a2cf5e4 commit 2c3b7b9
1 file changed
Lines changed: 4 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
541 | 541 | | |
542 | 542 | | |
543 | 543 | | |
| 544 | + | |
544 | 545 | | |
545 | 546 | | |
546 | 547 | | |
| |||
551 | 552 | | |
552 | 553 | | |
553 | 554 | | |
| 555 | + | |
554 | 556 | | |
555 | 557 | | |
556 | 558 | | |
| |||
564 | 566 | | |
565 | 567 | | |
566 | 568 | | |
567 | | - | |
| 569 | + | |
568 | 570 | | |
569 | 571 | | |
570 | 572 | | |
| |||
653 | 655 | | |
654 | 656 | | |
655 | 657 | | |
| 658 | + | |
656 | 659 | | |
657 | 660 | | |
658 | 661 | | |
| |||
0 commit comments