mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-04-30 20:40:09 +00:00
Improve error reporting in release notes generation
- Capture script exit code before checking - Show full error output if script fails - Prevents silent failures where error is hidden in temp file Related to #671 (automated release workflow)
This commit is contained in:
parent
a5f2568d66
commit
5f8bfa0cc1
1 changed files with 12 additions and 1 deletions
13
.github/workflows/release.yml
vendored
13
.github/workflows/release.yml
vendored
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue