externalize summary

This commit is contained in:
2026-04-29 18:36:38 +02:00
parent c40148a3e1
commit c306e1db1a
6 changed files with 144 additions and 74 deletions
@@ -0,0 +1,41 @@
name: "Deployment Summary"
description: "Writes deployment summary to GITHUB_STEP_SUMMARY"
inputs:
has_k8s:
description: "Whether Kubernetes manifests were detected"
required: true
has_helmfile:
description: "Whether helmfile.yaml was detected"
required: true
skip_helm_deployment:
description: "Whether Helm deployment is manually disabled"
required: true
runs:
using: "composite"
steps:
- shell: bash
run: |
echo "## Deployment Summary" >> "$GITHUB_STEP_SUMMARY"
echo "" >> "$GITHUB_STEP_SUMMARY"
if [ "${{ inputs.has_k8s }}" = "true" ]; then
echo "✅ **Kubernetes deployment**: Completed" >> "$GITHUB_STEP_SUMMARY"
else
echo "❌ **Kubernetes deployment**: Skipped (no k8s/ directory found)" >> "$GITHUB_STEP_SUMMARY"
fi
if [ "${{ inputs.has_helmfile }}" = "true" ] && [ "${{ inputs.skip_helm_deployment }}" != "true" ]; then
echo "✅ **Helm deployment**: Completed" >> "$GITHUB_STEP_SUMMARY"
elif [ "${{ inputs.has_helmfile }}" = "true" ] && [ "${{ inputs.skip_helm_deployment }}" = "true" ]; then
echo "⏭️ **Helm deployment**: Skipped (manually disabled)" >> "$GITHUB_STEP_SUMMARY"
else
echo "⏭️ **Helm deployment**: Skipped (no helmfile.yaml found)" >> "$GITHUB_STEP_SUMMARY"
fi
echo "" >> "$GITHUB_STEP_SUMMARY"
if [ "${{ inputs.has_helmfile }}" = "true" ]; then
service_type="Helm + Kubernetes"
else
service_type="Kubernetes Only"
fi
echo "**Service Type**: ${service_type}" >> "$GITHUB_STEP_SUMMARY"