We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2830b80 commit e39b183Copy full SHA for e39b183
.github/workflows/backend-release-pr.yml
@@ -75,13 +75,16 @@ jobs:
75
END { print content }
76
' CHANGELOG.md)
77
78
- # Remove leading/trailing whitespace and save to output
+ # Clean up empty markdown links and remove empty lines
79
+ CLEAN_NOTES=$(echo "$RELEASE_NOTES" | sed 's/(\[\]([^)]*))//g' | sed '/^$/d')
80
+
81
+ # Save to output
82
echo "release_notes<<EOF" >> $GITHUB_OUTPUT
- echo "$RELEASE_NOTES" | sed '/^$/d' >> $GITHUB_OUTPUT
83
+ echo "$CLEAN_NOTES" >> $GITHUB_OUTPUT
84
echo "EOF" >> $GITHUB_OUTPUT
85
86
echo "Release notes extracted:"
- echo "$RELEASE_NOTES"
87
+ echo "$CLEAN_NOTES"
88
else
89
echo "No CHANGELOG.md found"
90
echo "release_notes=" >> $GITHUB_OUTPUT
0 commit comments