Commit 2f0aab6
committed
Update grep defaults in workflow error script
This commit refines the grep functionality in the
`print_workflow_run_errors.py` script by updating default values:
- The default `--grep-pattern` is now `"[Ee]rror[: ]"`.
Logs will be automatically filtered for this pattern if no other
pattern is specified.
- The default `--grep-context` is now 10 lines.
If an empty string is explicitly passed to `--grep-pattern`
(e.g., `--grep-pattern ""`), grep functionality will be disabled,
and the script will fall back to printing the last N lines of the log.1 parent 6ba2558 commit 2f0aab6
1 file changed
+4
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
159 | 159 | | |
160 | 160 | | |
161 | 161 | | |
162 | | - | |
163 | | - | |
| 162 | + | |
| 163 | + | |
164 | 164 | | |
165 | 165 | | |
166 | 166 | | |
167 | 167 | | |
168 | | - | |
169 | | - | |
| 168 | + | |
| 169 | + | |
170 | 170 | | |
171 | 171 | | |
172 | 172 | | |
| |||
0 commit comments