mirror of
https://github.com/openai/codex.git
synced 2026-09-09 15:58:47 +00:00
Allow alpha hotfix versions in R2 releases (#35595)
## Why The Rust release workflow accepts alpha versions with a second numeric suffix, such as `1.2.3-alpha.4.1`, but the R2 publisher rejects them as invalid. ## What changed - Allow up to two numeric suffix components for alpha versions in `publish_r2_release.py`. - Document that its version pattern must remain aligned with release tag validation in `rust-release.yml`. GitOrigin-RevId: 8df68ce4f4d3e652367f7394a642827f21979d70
This commit is contained in:
7
.github/scripts/publish_r2_release.py
vendored
7
.github/scripts/publish_r2_release.py
vendored
@@ -30,7 +30,12 @@ PREFIX = "codex"
|
||||
REPOSITORY = "openai/codex"
|
||||
RELEASE_METADATA_NAME = "release.json"
|
||||
INSTALLER_NAMES = ("install.sh", "install.ps1")
|
||||
VERSION_RE = re.compile(r"^[0-9]+\.[0-9]+\.[0-9]+(?:-(?:alpha|beta)(?:\.[0-9]+)?)?$")
|
||||
# Keep this pattern in sync with release-tag validation in
|
||||
# .github/workflows/rust-release.yml.
|
||||
VERSION_RE = re.compile(
|
||||
r"^[0-9]+\.[0-9]+\.[0-9]+(?:-(?:alpha(?:\.[0-9]+){0,2}"
|
||||
r"|beta(?:\.[0-9]+)?))?$"
|
||||
)
|
||||
CRC64_RE = re.compile(r"^[A-Za-z0-9+/]{11}=$")
|
||||
SHA256_RE = re.compile(r"^sha256:([0-9a-f]{64})$")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user