diff --git a/scripts/notify_message.sh b/scripts/notify_message.sh index cb0c9953f20bb46f06fa4bf8cf87b38e26412238..01705d3c4c5c9b5c99f5fd11e2565b633714f46d 100644 --- a/scripts/notify_message.sh +++ b/scripts/notify_message.sh @@ -44,9 +44,15 @@ link_report="$(echo $link_report | sed -E 's/\s.*$//')" jq --arg link_var $link_report '.potentialAction[1].targets[0].uri = $link_var' notification_1.json >notification_2.json changelog_report="$(az storage blob url --container-name $AZURE_CONTAINER_NAME --name ${AZURE_PATH}/Changelog_edgehog_${TAG_NAME}.md)" +######################################ECHO N1############################################## +echo "$changelog_report" changelog_report="$(echo $changelog_report | sed -E 's/\s.*$//')" +######################################ECHO N2############################################## +echo "$changelog_report" jq --arg changelog_var $changelog_report '.potentialAction[2].targets[0].uri = $changelog_var' notification_2.json >notification_3.json sed -i -E 's/\\"//g' notification_3.json +######################################ECHO N3############################################## +echo "$changelog_report" jq --arg text "$(cat Job_message_edgehog_${TAG_NAME}.txt)" '.text = $text' notification_3.json >notification_4.json sed -i -E 's/\\n/ \\n\\n /g' notification_4.json @@ -57,3 +63,5 @@ cp Link_report_edgehog_${TAG_NAME}.txt Link_report.txt sed -i 's/\"//g' Link_report.txt echo "${changelog_report#?}" | cut -f1 -d"?" >changelog_link.txt +######################################ECHO N4############################################## +echo "$changelog_report"