Skip to content

Commit 338464c

Browse files
chore: correctly handle the tag push to finalize the release
1 parent ab31170 commit 338464c

File tree

1 file changed

+17
-3
lines changed

1 file changed

+17
-3
lines changed

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

Lines changed: 17 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -137,13 +137,20 @@ jobs:
137137
cp .cz.toml .cz.toml.bak
138138
sed -i '/gpg_sign = true/d' .cz.toml
139139
cz bump --increment "${{ github.event.inputs.chart_increment }}"
140+
# Capture the new version tag
141+
NEW_TAG=$(git describe --tags --abbrev=0)
142+
echo "NEW_TAG=${NEW_TAG}" >> $GITHUB_ENV
140143
# Restore original .cz.toml
141144
mv .cz.toml.bak .cz.toml
142145
143146
- name: Push changes and tags
144147
run: |
145148
echo "Pushing changes and tags to repository..."
146-
git push origin main --follow-tags
149+
# First push the commit
150+
git push origin main
151+
# Then push the tag explicitly to ensure CI workflow is triggered
152+
echo "Pushing tag: ${{ env.NEW_TAG }}"
153+
git push origin ${{ env.NEW_TAG }}
147154
148155
- name: Generate release summary
149156
run: |
@@ -154,15 +161,22 @@ jobs:
154161
echo "| GGScout Version | \`${{ github.event.inputs.ggscout_version }}\` |" >> $GITHUB_STEP_SUMMARY
155162
echo "| Chart Increment | \`${{ github.event.inputs.chart_increment }}\` |" >> $GITHUB_STEP_SUMMARY
156163
echo "| Updated App Version | ${{ github.event.inputs.update_app_version }} |" >> $GITHUB_STEP_SUMMARY
164+
echo "| New Tag | \`${{ env.NEW_TAG }}\` |" >> $GITHUB_STEP_SUMMARY
157165
echo "" >> $GITHUB_STEP_SUMMARY
158166
echo "### ✅ Completed Steps" >> $GITHUB_STEP_SUMMARY
159167
echo "- Downloaded schemas from ggscout-repository" >> $GITHUB_STEP_SUMMARY
160168
echo "- Updated bundled schema files" >> $GITHUB_STEP_SUMMARY
161169
$(if [ '${{ github.event.inputs.update_app_version }}' = 'true' ]; then echo "- Updated Chart.yaml appVersion" >> $GITHUB_STEP_SUMMARY; fi)
162170
echo "- Ran tests and linting" >> $GITHUB_STEP_SUMMARY
163-
echo "- Created and pushed release" >> $GITHUB_STEP_SUMMARY
171+
echo "- Created and pushed tag: ${{ env.NEW_TAG }}" >> $GITHUB_STEP_SUMMARY
164172
echo "" >> $GITHUB_STEP_SUMMARY
165-
echo "🚀 **Chart release is now available!**" >> $GITHUB_STEP_SUMMARY
173+
echo "### 📋 Next Steps" >> $GITHUB_STEP_SUMMARY
174+
echo "The CI workflow will automatically:" >> $GITHUB_STEP_SUMMARY
175+
echo "- Create a GitHub Release using helm/chart-releaser-action" >> $GITHUB_STEP_SUMMARY
176+
echo "- Publish the Helm chart to GitHub Pages" >> $GITHUB_STEP_SUMMARY
177+
echo "- Deploy documentation to GitHub Pages" >> $GITHUB_STEP_SUMMARY
178+
echo "" >> $GITHUB_STEP_SUMMARY
179+
echo "🚀 **Monitor the [CI workflow](https://github.com/${{ github.repository }}/actions/workflows/ci.yml) for release completion!**" >> $GITHUB_STEP_SUMMARY
166180
167181
notify-completion:
168182
needs: release

0 commit comments

Comments
 (0)