gh aw version writes its output to stderr, not stdout. The version capture in upgrade.yml pipes only stdout:
version=$(gh aw version | awk '{print $NF}')
This results in an empty $version, which means:
- .github/aw/gh-aw-version gets written as an empty file
- PR titles read "build: Upgrade gh-aw to" with no version
- Commit messages have the same missing version
Reproducer:
$ gh aw version 2>/dev/null # stdout only → nothing
$ gh aw version 1>/dev/null # stderr only → "gh aw version v0.87.10"
This affects both this repo and bootc-dev/bcvk. Every merged upgrade PR has the empty version: "build: Upgrade gh-aw
to " (#64, and bcvk#341)
gh aw version writes its output to stderr, not stdout. The version capture in upgrade.yml pipes only stdout:
version=$(gh aw version | awk '{print $NF}')
This results in an empty $version, which means:
Reproducer:
$ gh aw version 2>/dev/null # stdout only → nothing
$ gh aw version 1>/dev/null # stderr only → "gh aw version v0.87.10"
This affects both this repo and bootc-dev/bcvk. Every merged upgrade PR has the empty version: "build: Upgrade gh-aw
to " (#64, and bcvk#341)