Remove releases.json aliases and stable release channel support#23755
Remove releases.json aliases and stable release channel support#23755
Conversation
…stall scripts Agent-Logs-Url: https://github.com/github/gh-aw/sessions/fc9f60bb-4784-46e1-af52-39b18e7ab3b5 Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
There was a problem hiding this comment.
Pull request overview
Removes the stable release alias mechanism (previously resolved via .github/aw/releases.json) and standardizes installers to default to GitHub’s latest release behavior, along with cleaning up related CI/workflow and documentation.
Changes:
- Update both install scripts to default to
latestand removereleases.jsonalias resolution (HAS_JQ,fetch_release_data, alias block). - Remove
aliasesfrom.github/aw/releases.jsonand its JSON schema; delete the workflow that maintained the stable alias. - Update CI/docs/tests to reflect the removal of
stableand alias validation.
Reviewed changes
Copilot reviewed 8 out of 8 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
install-gh-aw.sh |
Defaults to latest; removes alias-resolution + related helper logic. |
actions/setup-cli/install.sh |
Mirrors installer changes for the setup action’s bundled script. |
scripts/test-install-script.sh |
Removes tests that asserted fetch_release_data / alias behavior; renumbers remaining tests. |
docs/src/content/docs/reference/releases.md |
Updates guidance to only describe latest default and pinned versions. |
.github/aw/releases.json |
Removes aliases field from runtime config. |
.github/aw/releases.schema.json |
Removes aliases property from schema. |
.github/workflows/update-stable-release.yml |
Deletes workflow that updated the stable alias. |
.github/workflows/ci.yml |
Drops aliases validation and removes the stable install-script job. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
actions/setup-cli/install.sh
Outdated
| # Script to download and install gh-aw binary for the current OS and architecture | ||
| # Supports: Linux, macOS (Darwin), FreeBSD, Windows (Git Bash/MSYS/Cygwin) | ||
| # Usage: ./install-gh-aw.sh [version] [options] | ||
| # If no version is specified, it will use "stable" (resolved from .github/aw/releases.json) | ||
| # Version aliases (e.g. "stable", "latest") are resolved via .github/aw/releases.json before download. | ||
| # If no version is specified, it will use "latest" | ||
| # Note: Checksum validation is currently skipped by default (will be enabled in future releases) | ||
| # | ||
| # Examples: | ||
| # ./install-gh-aw.sh # Install stable version | ||
| # ./install-gh-aw.sh latest # Install latest version | ||
| # ./install-gh-aw.sh # Install latest version | ||
| # ./install-gh-aw.sh v1.0.0 # Install specific version | ||
| # ./install-gh-aw.sh --skip-checksum # Skip checksum validation |
There was a problem hiding this comment.
This script’s header still says Usage: ./install-gh-aw.sh ... and uses ./install-gh-aw.sh in examples, but the file is actions/setup-cli/install.sh and is invoked as install.sh by the composite action. Updating the usage/examples will prevent confusion for people running this script directly while debugging.
See below for a potential fix:
# Usage: ./install.sh [version] [options]
# If no version is specified, it will use "latest"
# Note: Checksum validation is currently skipped by default (will be enabled in future releases)
#
# Examples:
# ./install.sh # Install latest version
# ./install.sh v1.0.0 # Install specific version
# ./install.sh --skip-checksum # Skip checksum validation
|
@copilot update the contributing page to explain that the Release process create a prerelease release, and the "latest" pointer has to be moved manually. |
|
@copilot update the contributing page to explain that the Release process create a prerelease release, and the "latest" pointer has to be moved manually. |
|
@copilot keep working |
…es-json-aliases-support
|
@copilot |
Agent-Logs-Url: https://github.com/github/gh-aw/sessions/a0752374-80c2-45a1-8e43-97d35023c7cf Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Addressed both remaining review comments in commit
Warning Firewall rules blocked me from connecting to one or more addresses (expand for details)I tried to connect to the following addresses, but was blocked by firewall rules:
If you need me to access, download, or install something from one of these locations, you can either:
|
The
stablerelease alias and its resolution via.github/aw/releases.jsonare removed from both install scripts. The default version is nowlatest, resolved directly by GitHub's release API rather than an indirection layer.Changes
install-gh-aw.sh/actions/setup-cli/install.sh: RemoveHAS_JQ,fetch_release_datafunction, and the releases.json alias resolution block; default versionstable→latest; add explicit rejection of thestablealias with a clear error message; update script header to use./install.shin usage/examples.github/aw/releases.json: Removealiasesfield.github/aw/releases.schema.json: Removealiasesproperty.github/workflows/update-stable-release.yml: Delete — entire workflow existed solely to maintain the stable alias.github/workflows/ci.yml: Removeinstall-script(stable) CI job andaliasesvalidation from the releases.json structure checkscripts/test-install-script.sh: Remove Test 8 (fetch_release_data); renumber remaining testsdocs/reference/releases.md: Update release channels table —latestis now the default; rename "Alias" column to "Version specifier"CONTRIBUTING.md: Document that the release workflow publishes a prerelease and that promoting to a full release (to move thelatestpointer) is a required manual step