ci: Fixing Slack notification in test-build-docker-image (#30407)

Fixing minor syntax issues when notifying on Slack on failure of the Test build Docker workflow.

<!-- This is an auto-generated comment: release notes by coderabbit.ai
-->

## Summary by CodeRabbit

- **Chores**
	- Improved Slack notification messages by adjusting link formatting.

<!-- end of auto-generated comment: release notes by coderabbit.ai -->
This commit is contained in:
Arpit Mohan 2024-01-18 12:45:23 +05:30 committed by GitHub
parent 455741e089
commit 4b3d19b238
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -403,10 +403,10 @@ jobs:
merged_upto_sha='${{ steps.merge.outputs.merged_upto_sha }}'
merged_upto_sha_short="$(echo "$merged_upto_sha" | grep -o '^.\{8\}' || true)"
details="🚨 TBP workflow failed in <$run_url|${{ github.run_id }}/attempts/${{ github.run_attempt }}>.
details="🚨 TBP workflow failed in <$run_url|${{ github.run_id }}/attempts/${{ github.run_attempt }}>."
# This unweildy horror of a sed command, converts standard Markdown links to Slack's unweildy link syntax.
slack_message="$(echo "$details" | sed -E 's/\[([^]]+)\]\(([^)]+)\)/<\2|\1>/g')"
# This unwieldy horror of a sed command, converts standard Markdown links to Slack's unwieldy link syntax.
slack_message=$(echo "$details" | sed -E 's/\[([^]]+)\]\(([^)]+)\)/<\2|\1>/g')
# This is the ChannelId of the tech channel.
body="$(jq -nc \