Skip to content

Commit 7884334

Browse files
authored
Use an intermediate environment variable in GHA (#156)
1 parent 41f5118 commit 7884334

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/helm.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,6 +43,8 @@ jobs:
4343

4444
- name: Bump Chart Version
4545
id: bump_version
46+
env:
47+
VERSION_BUMP: ${{ inputs.version_bump }}
4648
run: |
4749
# Get current version from Chart.yaml
4850
CURRENT_VERSION=$(grep 'version:' helm/temporal-worker-controller/Chart.yaml | awk '{print $2}')
@@ -55,11 +57,11 @@ jobs:
5557
PATCH=${VERSION_PARTS[2]}
5658
5759
# Increment version based on input
58-
if [[ "${{ inputs.version_bump }}" == "major" ]]; then
60+
if [[ "${VERSION_BUMP}" == "major" ]]; then
5961
MAJOR=$((MAJOR + 1))
6062
MINOR=0
6163
PATCH=0
62-
elif [[ "${{ inputs.version_bump }}" == "minor" ]]; then
64+
elif [[ "${VERSION_BUMP}" == "minor" ]]; then
6365
MINOR=$((MINOR + 1))
6466
PATCH=0
6567
else

0 commit comments

Comments
 (0)