Skip to content

Commit eea40bf

Browse files
chris-rockclaude
andauthored
fix: skip version file updates on main for pre-release tags (#1396)
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>
1 parent 42ddc4d commit eea40bf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/release.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,8 @@ on:
1010
jobs:
1111
prepare-release:
1212
runs-on: ubuntu-latest
13-
# Only run for version tags
14-
if: startsWith(github.event.release.tag_name, 'v')
13+
# Only run for stable version tags (skip pre-releases like v1.0.0-alpha.1)
14+
if: startsWith(github.event.release.tag_name, 'v') && !contains(github.event.release.tag_name, '-')
1515
permissions:
1616
contents: write
1717

0 commit comments

Comments
 (0)