Skip to content

fix: skip version file updates on main for pre-release tags#1396

Merged
chris-rock merged 1 commit intomainfrom
fix/skip-prerelease-version-updates
Feb 19, 2026
Merged

fix: skip version file updates on main for pre-release tags#1396
chris-rock merged 1 commit intomainfrom
fix/skip-prerelease-version-updates

Conversation

@chris-rock
Copy link
Copy Markdown
Member

Summary

  • When a pre-release tag (e.g. v12.1.0-alpha.1) triggers the release workflow, the prepare-release job was updating version files (Chart.yaml, kustomization.yaml, etc.) on main with the pre-release version string. This left main referencing a pre-release version, which is undesirable.
  • Added !contains(github.event.release.tag_name, '-') guard to the prepare-release job condition, matching the convention already used in publish.yaml and release-manifests.yaml.
  • Stable release tags (e.g. v12.1.0) continue to work as before.

Test plan

  • make lint/actions passes
  • Verify a pre-release tag like v12.1.0-alpha.1 would be skipped by the updated condition
  • Verify a stable tag like v12.1.0 still triggers the job normally

🤖 Generated with Claude Code

@github-actions
Copy link
Copy Markdown
Contributor

github-actions Bot commented Feb 19, 2026

Test Results

  5 files  ±0   42 suites  ±0   1h 0m 46s ⏱️ - 3m 56s
393 tests ±0  393 ✅ ±0  0 💤 ±0  0 ❌ ±0 
433 runs  ±0  431 ✅ ±0  2 💤 ±0  0 ❌ ±0 

Results for commit 6cfef8e. ± Comparison against base commit 42ddc4d.

♻️ This comment has been updated with latest results.

When a pre-release is created (e.g. v12.1.0-alpha.1), the release
workflow was updating Chart.yaml, kustomization.yaml, and other version
files on main with the pre-release version string. This is undesirable
because main should only reference stable release versions.

Add a !contains(github.event.release.tag_name, '-') guard to the
prepare-release job, matching the convention already used in publish.yaml
and release-manifests.yaml.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@chris-rock chris-rock force-pushed the fix/skip-prerelease-version-updates branch from 921847b to 6cfef8e Compare February 19, 2026 14:07
@chris-rock chris-rock merged commit eea40bf into main Feb 19, 2026
25 checks passed
@chris-rock chris-rock deleted the fix/skip-prerelease-version-updates branch February 19, 2026 14:30
@github-actions github-actions Bot locked and limited conversation to collaborators Feb 19, 2026
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants