Commit c353809
committed
Increase visibility of error message when action fails due to HTTP request error
The "arduino/report-size-deltas" action relies on the GitHub REST API. It makes HTTP requests to various API endpoints
during each workflow run.
These requests might produce an exception due to transient network outages, misconfiguration of the workflow, or a
problem with the action. This will cause the action's step in the workflow run to fail. The maintainer of the repository
in which the action is used may then need to investigate the cause of the failure.
Previously, the cause of the failure could only be determined by evaluating the workflow run logs, which are somewhat
unfriendly due to containing the Python stack trace produced by the HTTP request exception. The significant error
message is hereby made visible as an annotation on the workflow run summary page through the use of an "error" workflow
command.1 parent 2537157 commit c353809
File tree
2 files changed
+14
-7
lines changed- reportsizedeltas
- tests
2 files changed
+14
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
630 | 630 | | |
631 | 631 | | |
632 | 632 | | |
633 | | - | |
634 | | - | |
| 633 | + | |
635 | 634 | | |
636 | 635 | | |
637 | 636 | | |
638 | 637 | | |
639 | 638 | | |
640 | 639 | | |
641 | | - | |
642 | | - | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
643 | 651 | | |
644 | | - | |
645 | | - | |
| 652 | + | |
646 | 653 | | |
647 | 654 | | |
648 | 655 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
910 | 910 | | |
911 | 911 | | |
912 | 912 | | |
913 | | - | |
| 913 | + | |
914 | 914 | | |
915 | 915 | | |
916 | 916 | | |
| |||
0 commit comments