File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed
Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -39,7 +39,12 @@ CHANGELOG_CONTENT=$("$SCRIPT_DIR/get-latest-changelog.sh")
3939CHANGELOG_CONTENT=$( echo " $CHANGELOG_CONTENT " | jq -Rs .)
4040CHANGELOG_CONTENT=${CHANGELOG_CONTENT# \" } # Remove leading quote
4141CHANGELOG_CONTENT=${CHANGELOG_CONTENT% \" } # Remove trailing quote
42- echo " Changelog content: $CHANGELOG_CONTENT "
42+
43+ # Check if changelog content is longer than 4096 characters
44+ if [ ${# CHANGELOG_CONTENT} -gt 4096 ]; then
45+ CHANGELOG_CONTENT=" ${CHANGELOG_CONTENT: 0: 3900} ..."
46+ CHANGELOG_CONTENT+=$" \nFor the complete changelog, visit: https://github.com/Parallels/terraform-provider-parallels-desktop/releases/tag/v${VERSION} "
47+ fi
4348
4449# Create the JSON payload
4550JSON_PAYLOAD=$(
5560)
5661echo " $JSON_PAYLOAD "
5762
58- Send the webhook request
63+ # Send the webhook request
5964curl -H " Content-Type: application/json" \
6065 -d " $JSON_PAYLOAD " \
6166 " $WEBHOOK_URL "
You can’t perform that action at this time.
0 commit comments