Commit 6cade09
fix(workflows): fix silent curl pipe failure in gh-aw install step
The 'Install gh-aw extension' step used `curl ... | bash` which silently
swallows curl failures — when curl can't download the install script (e.g.,
transient network issue), bash receives empty input and exits 0, leaving
the gh-aw binary not installed. This caused intermittent 'Failed to find
gh-aw binary for MCP server' errors in the claude/copilot token analyzer
and optimizer workflows.
Fix: download the install script to a temp file first, then execute it.
This way a curl failure propagates correctly through bash's `set -e`.
Also remove the `-type f` restriction from the binary search so symlinks
are found, and use $HOME instead of ~/ to ensure reliable expansion.
Fixes #2141
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>1 parent 2549b72 commit 6cade09
5 files changed
Lines changed: 9 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
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 | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
18 | 21 | | |
19 | 22 | | |
20 | 23 | | |
21 | 24 | | |
22 | | - | |
| 25 | + | |
23 | 26 | | |
24 | 27 | | |
25 | 28 | | |
| |||
0 commit comments