Skip to content

Commit 0a09a5b

Browse files
committed
fix(ci): sed formatting of numeric values
1 parent f61d2ef commit 0a09a5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

.github/workflows/time-reporting.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -117,8 +117,8 @@ jobs:
117117
# Truncate the summary to exclude the per-person details.
118118
SUMMARY_TRUNCATED=$(echo "$SUMMARY_FULL" | awk 'BEGIN{RS=""; ORS="\n\n"} NR<=2')
119119
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')
120+
# Format for Slack: add backticks to numbers at the end of a line and escape newlines.
121+
SUMMARY_SLACK=$(echo "$SUMMARY_TRUNCATED" | sed -E 's/: ([0-9.]+)$/: `\1`/' | sed -z 's/\n/\\n/g')
122122
123123
echo "summary=$SUMMARY_SLACK" >> $GITHUB_OUTPUT
124124

0 commit comments

Comments
 (0)