externalize summary
This commit is contained in:
@@ -0,0 +1,41 @@
|
||||
name: "CI Summary"
|
||||
description: "Writes CI validation 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_validation:
|
||||
description: "Whether Helm validation is manually disabled"
|
||||
required: true
|
||||
runs:
|
||||
using: "composite"
|
||||
steps:
|
||||
- shell: bash
|
||||
run: |
|
||||
echo "## CI Validation Summary" >> "$GITHUB_STEP_SUMMARY"
|
||||
echo "" >> "$GITHUB_STEP_SUMMARY"
|
||||
|
||||
if [ "${{ inputs.has_k8s }}" = "true" ]; then
|
||||
echo "✅ **Kubernetes validation**: Completed" >> "$GITHUB_STEP_SUMMARY"
|
||||
else
|
||||
echo "❌ **Kubernetes validation**: Skipped (no k8s/ directory found)" >> "$GITHUB_STEP_SUMMARY"
|
||||
fi
|
||||
|
||||
if [ "${{ inputs.has_helmfile }}" = "true" ] && [ "${{ inputs.skip_helm_validation }}" != "true" ]; then
|
||||
echo "✅ **Helm validation**: Completed" >> "$GITHUB_STEP_SUMMARY"
|
||||
elif [ "${{ inputs.has_helmfile }}" = "true" ] && [ "${{ inputs.skip_helm_validation }}" = "true" ]; then
|
||||
echo "⏭️ **Helm validation**: Skipped (manually disabled)" >> "$GITHUB_STEP_SUMMARY"
|
||||
else
|
||||
echo "⏭️ **Helm validation**: 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"
|
||||
Reference in New Issue
Block a user