Skip to content

upgrade.yml: gh aw version writes to stderr, leaving version pin and PR title empty #85

Description

@gursewak1997

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)

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent/codeTriggers the drafter agent

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions