Skip to content

Commit 9afd0b7

Browse files
chore: better CI release workflow
1 parent 338464c commit 9afd0b7

File tree

1 file changed

+10
-6
lines changed

1 file changed

+10
-6
lines changed

.github/workflows/release-with-version.yml

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -133,15 +133,19 @@ jobs:
133133
- name: Create release
134134
run: |
135135
echo "Creating Helm chart release..."
136-
# Create a temporary .cz.toml without gpg_sign for CI
137-
cp .cz.toml .cz.toml.bak
138-
sed -i '/gpg_sign = true/d' .cz.toml
139-
cz bump --increment "${{ github.event.inputs.chart_increment }}"
136+
# Create a CI-specific config without gpg_sign
137+
cp .cz.toml .cz.ci.toml
138+
sed -i '/gpg_sign = true/d' .cz.ci.toml
139+
140+
# Run bump with CI config and --yes flag for non-interactive mode
141+
CZ_CONFIG_FILE=.cz.ci.toml cz bump --increment "${{ github.event.inputs.chart_increment }}" --yes
142+
140143
# Capture the new version tag
141144
NEW_TAG=$(git describe --tags --abbrev=0)
142145
echo "NEW_TAG=${NEW_TAG}" >> $GITHUB_ENV
143-
# Restore original .cz.toml
144-
mv .cz.toml.bak .cz.toml
146+
147+
# Clean up CI config file
148+
rm .cz.ci.toml
145149
146150
- name: Push changes and tags
147151
run: |

0 commit comments

Comments
 (0)