Skip stable installer alias publishing for prereleases (#51425)

## What changed

Require `--prerelease false` before publishing the R2 `codex/install.sh` and `codex/install.ps1` aliases when updating the `latest` channel. This keeps prereleases marked latest from overwriting the stable installer aliases.

GitOrigin-RevId: 2ee7a8aee03f5242fb3b85af377655017e0d23b8
This commit is contained in:
zsol-openai
2026-10-06 17:25:28 +00:00
committed by copyberry
parent 404cd42aa5
commit f71935b7f0
+1 -1
View File
@@ -522,7 +522,7 @@ def main() -> int:
endpoint, version, "prerelease"
):
channels.append("prerelease")
if "latest" in channels:
if "latest" in channels and args.prerelease == "false":
publish_installers(endpoint, args.tag, assets)
for channel in channels:
channel_key = f"{PREFIX}/channels/{channel}"