Skip to content

Commit d4a8b0d

Browse files
committed
chore: update release-management workflow
1 parent ee70c21 commit d4a8b0d

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

.github/workflows/release-management.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -149,8 +149,10 @@ jobs:
149149
150150
# Add @since updates section if there are any
151151
if [[ "${{ steps.update_since_tags.outputs.has_updates }}" == "true" ]]; then
152+
# Store the summary in a variable with proper quoting
153+
SINCE_SUMMARY='${{ steps.update_since_tags.outputs.summary }}'
152154
RELEASE_NOTES="${RELEASE_NOTES}"$'\n\n'
153-
RELEASE_NOTES="${RELEASE_NOTES}${{ steps.update_since_tags.outputs.summary }}"
155+
RELEASE_NOTES="${RELEASE_NOTES}${SINCE_SUMMARY}"
154156
fi
155157
156158
# If no content was added, provide default message
@@ -170,11 +172,11 @@ jobs:
170172
fi
171173
172174
# Save the release notes to a file
173-
echo "$RELEASE_NOTES" > $GITHUB_WORKSPACE/release_notes.md
175+
echo "$RELEASE_NOTES" > "$GITHUB_WORKSPACE/release_notes.md"
174176
175177
# For debugging
176178
echo "Generated release notes:"
177-
cat $GITHUB_WORKSPACE/release_notes.md
179+
cat "$GITHUB_WORKSPACE/release_notes.md"
178180
179181
# Set the content for GitHub Actions output using jq to properly escape the content
180182
echo "content=$(echo "$RELEASE_NOTES" | jq -Rsa .)" >> $GITHUB_OUTPUT

0 commit comments

Comments
 (0)