Skip to content

Commit 8c228c1

Browse files
committed
Unify version normalization in release workflow
1 parent a18c201 commit 8c228c1

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

.github/workflows/release.yaml

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -27,13 +27,11 @@ jobs:
2727
steps:
2828
- uses: actions/checkout@v6
2929

30-
- name: Extract version
31-
id: version
30+
- name: Normalize version
3231
run: |
3332
VERSION="${{ inputs.version }}"
34-
# Remove 'v' prefix if present
35-
VERSION=${VERSION#v}
36-
echo "version=${VERSION}" >> $GITHUB_OUTPUT
33+
VERSION="${VERSION#v}"
34+
echo "VERSION=$VERSION" >> "$GITHUB_ENV"
3735
3836
- uses: oven-sh/setup-bun@v2
3937
with:
@@ -61,7 +59,6 @@ jobs:
6159
- name: Package Helm chart
6260
run: |
6361
mkdir -p $CHARTS_PATH/package
64-
VERSION=${VERSION#v}
6562
helm package $CHARTS_PATH \
6663
--destination $CHARTS_PATH/package
6764
--version $VERSION

0 commit comments

Comments
 (0)