-
Notifications
You must be signed in to change notification settings - Fork 2.5k
Handle images in roolease notes #7548
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -81,6 +81,10 @@ jobs: | |
| changelog_content="Release v${current_package_version}" | ||
| else | ||
| echo "Found changelog section for version ${current_package_version}" | ||
| # Convert relative image paths to full GitHub URLs for proper display in release notes | ||
| # Use the main branch URL since the images will be merged there before release | ||
| # Only match .png files to avoid accidentally modifying other references | ||
| changelog_content=$(echo "$changelog_content" | sed "s|(releases/\([^)]*\.png\))|(https://github.com/${{ github.repository }}/raw/main/releases/\1)|g") | ||
|
||
| fi | ||
|
|
||
| # Create release with changelog content | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Consider supporting more image formats beyond just PNG. You could modify this to:
This would handle .jpg, .jpeg, .gif, and .svg files as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@roomote-agent good point, make it handle those types too