Skip to content

Commit f8051e8

Browse files
committed
More image types
1 parent b0ee56d commit f8051e8

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

.github/workflows/marketplace-publish.yml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -83,8 +83,9 @@ jobs:
8383
echo "Found changelog section for version ${current_package_version}"
8484
# Convert relative image paths to full GitHub URLs for proper display in release notes
8585
# Use the main branch URL since the images will be merged there before release
86-
# Only match .png files to avoid accidentally modifying other references
87-
changelog_content=$(echo "$changelog_content" | sed "s|(releases/\([^)]*\.png\))|(https://github.com/${{ github.repository }}/raw/main/releases/\1)|g")
86+
# Match common image file extensions: png, jpg, jpeg, gif, webp, svg
87+
# Using extended regex (-E) for better portability
88+
changelog_content=$(echo "$changelog_content" | sed -E "s/\(releases\/([^)]*\.(png|jpg|jpeg|gif|webp|svg))\)/(https:\/\/github.com\/${{ github.repository }}\/raw\/main\/releases\/\1)/g")
8889
fi
8990
9091
# Create release with changelog content

0 commit comments

Comments
 (0)