ci: Gracefully exit on no commit bump

This commit is contained in:
Chris Coutinho
2025-12-20 13:11:11 +01:00
parent f5e5965864
commit 53b84200d4
+30 -23
View File
@@ -130,29 +130,36 @@ jobs:
echo "Pushed tags for components:${{ steps.bump.outputs.components }}" echo "Pushed tags for components:${{ steps.bump.outputs.components }}"
- name: Summary - name: Summary
if: steps.bump.outputs.bumped == 'true'
run: | run: |
echo "## Version Bump Summary" >> $GITHUB_STEP_SUMMARY if [ "${{ steps.bump.outputs.bumped }}" == "true" ]; then
echo "" >> $GITHUB_STEP_SUMMARY echo "## Version Bump Summary" >> $GITHUB_STEP_SUMMARY
echo "The following components were bumped:" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY echo "The following components were bumped:" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
for component in ${{ steps.bump.outputs.components }}; do for component in ${{ steps.bump.outputs.components }}; do
case $component in case $component in
mcp) mcp)
tag=$(git tag --sort=-creatordate | grep -E '^v[0-9]' | head -n 1) tag=$(git tag --sort=-creatordate | grep -E '^v[0-9]' | head -n 1)
echo "- **MCP Server**: \`$tag\`" >> $GITHUB_STEP_SUMMARY echo "- **MCP Server**: \`$tag\`" >> $GITHUB_STEP_SUMMARY
;; ;;
helm) helm)
tag=$(git tag --sort=-creatordate | grep -E '^nextcloud-mcp-server-' | head -n 1) tag=$(git tag --sort=-creatordate | grep -E '^nextcloud-mcp-server-' | head -n 1)
echo "- **Helm Chart**: \`$tag\`" >> $GITHUB_STEP_SUMMARY echo "- **Helm Chart**: \`$tag\`" >> $GITHUB_STEP_SUMMARY
;; ;;
astrolabe) astrolabe)
tag=$(git tag --sort=-creatordate | grep -E '^astrolabe-v' | head -n 1) tag=$(git tag --sort=-creatordate | grep -E '^astrolabe-v' | head -n 1)
echo "- **Astrolabe**: \`$tag\`" >> $GITHUB_STEP_SUMMARY echo "- **Astrolabe**: \`$tag\`" >> $GITHUB_STEP_SUMMARY
;; ;;
esac esac
done done
echo "" >> $GITHUB_STEP_SUMMARY echo "" >> $GITHUB_STEP_SUMMARY
echo "Tags have been pushed and release workflows will trigger automatically." >> $GITHUB_STEP_SUMMARY echo "Tags have been pushed and release workflows will trigger automatically." >> $GITHUB_STEP_SUMMARY
else
echo "## Version Bump Summary" >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "✅ No version bumps required - no relevant commits found since last release." >> $GITHUB_STEP_SUMMARY
echo "" >> $GITHUB_STEP_SUMMARY
echo "The workflow completed successfully with no changes." >> $GITHUB_STEP_SUMMARY
fi