Skip to content

armgit / Pulse

Public Imported from GitHub
0

Real-time monitoring dashboard for Proxmox VE, PBS, Docker, Kubernetes, TrueNAS and vSphere. Self-hosted, with alerts for failed backups, full disks, unhealthy containers and offline nodes.

Improve error reporting in release notes generation

rcourtman5f8bfa0cc125
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index e03f9bd255..f3287dca4a 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -175,9 +175,20 @@ jobs:
echo "Comparing v${{ inputs.version }} with ${PREVIOUS_TAG}..."
# Generate notes - script writes output between separator lines
- # We need to capture everything between the separators
TEMP_OUTPUT=$(mktemp)
+
+ # Run script, capture exit code (don't fail immediately)
+ set +e
./scripts/generate-release-notes.sh ${{ inputs.version }} "${PREVIOUS_TAG}" > "$TEMP_OUTPUT" 2>&1
+ SCRIPT_EXIT=$?
+ set -e
+
+ if [ $SCRIPT_EXIT -ne 0 ]; then
+ echo "❌ Release notes generation failed:"
+ cat "$TEMP_OUTPUT"
+ rm -f "$TEMP_OUTPUT"
+ exit 1
+ fi
# Extract notes between separator lines (everything between the two ━━━ lines)
RELEASE_NOTES=$(awk '/^Generated release notes:/{flag=1;next}/^━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━$/{if(flag==1){flag=2}else if(flag==2){flag=3}}flag==2' "$TEMP_OUTPUT")