Commit 18c5399
fix: replace piped while loops with temp files to avoid pipefail SIGPIPE (#24350)
* fix: replace piped while loops with temp files to avoid pipefail SIGPIPE
The token usage analyzer workflows use set -euo pipefail which causes
jq | head | while read pipelines to fail with exit 141 (SIGPIPE) when
head closes the pipe early, silently aborting artifact downloads.
Write to temp files first, then read from them in while loops.
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
* Update .github/workflows/copilot-token-usage-analyzer.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update .github/workflows/claude-token-usage-analyzer.md
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update .github/workflows/copilot-token-usage-analyzer.lock.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* Update .github/workflows/claude-token-usage-analyzer.lock.yml
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
* fix: recompile lock files after jq slicing updates
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>1 parent 1355331 commit 18c5399
4 files changed
Lines changed: 44 additions & 40 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
69 | 69 | | |
70 | 70 | | |
71 | 71 | | |
72 | | - | |
| 72 | + | |
| 73 | + | |
73 | 74 | | |
74 | 75 | | |
75 | 76 | | |
76 | 77 | | |
77 | 78 | | |
78 | 79 | | |
79 | 80 | | |
80 | | - | |
| 81 | + | |
81 | 82 | | |
82 | 83 | | |
83 | 84 | | |
| |||
86 | 87 | | |
87 | 88 | | |
88 | 89 | | |
89 | | - | |
| 90 | + | |
| 91 | + | |
90 | 92 | | |
91 | 93 | | |
92 | 94 | | |
93 | 95 | | |
94 | 96 | | |
95 | 97 | | |
96 | | - | |
| 98 | + | |
97 | 99 | | |
98 | 100 | | |
99 | 101 | | |
| |||
0 commit comments