We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f61d2ef commit 0a09a5bCopy full SHA for 0a09a5b
.github/workflows/time-reporting.yml
@@ -117,8 +117,8 @@ jobs:
117
# Truncate the summary to exclude the per-person details.
118
SUMMARY_TRUNCATED=$(echo "$SUMMARY_FULL" | awk 'BEGIN{RS=""; ORS="\n\n"} NR<=2')
119
120
- # Format for Slack: add backticks to numbers and escape newlines for the JSON payload.
121
- SUMMARY_SLACK=$(echo "$SUMMARY_TRUNCATED" | sed -E 's/: ([0-9.]+)/: `\1`/' | sed -z 's/\n/\\n/g')
+ # Format for Slack: add backticks to numbers at the end of a line and escape newlines.
+ SUMMARY_SLACK=$(echo "$SUMMARY_TRUNCATED" | sed -E 's/: ([0-9.]+)$/: `\1`/' | sed -z 's/\n/\\n/g')
122
123
echo "summary=$SUMMARY_SLACK" >> $GITHUB_OUTPUT
124
0 commit comments