Skip to content

Commit b392fa3

Browse files
authored
Update discord-head-commit.yml
1 parent 562ff2c commit b392fa3

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

.github/workflows/discord-head-commit.yml

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ jobs:
2121
echo "${COMMITS_JSON:-[]}" > commits.json
2222
echo "${HEAD_JSON:-null}" > head.json
2323
24-
# Combine commits + head_commit, de-dup by id, sort by timestamp
24+
# Combine commits + head, de-dup, sort by timestamp
2525
jq -cs '
2626
(.[0] // []) as $c |
2727
(.[1] // null) as $h |
@@ -39,15 +39,14 @@ jobs:
3939
login="$(jq -r '.author.username // empty' <<< "$c")"
4040
[ -z "$login" ] && login="$ACTOR_FALLBACK"
4141
42-
# Fallback-safe time; Discord timestamp must be UTC ISO
42+
# Ensure valid timestamp; Discord uses this to render "Today at HH:MM"
4343
if [ -z "$ts" ] || ! date -d "$ts" >/dev/null 2>&1; then ts="$(date -Iseconds)"; fi
4444
iso_utc="$(date -u -d "$ts" +"%Y-%m-%dT%H:%M:%SZ")"
45-
time_str="$(date -d "$ts" +"%-H:%M")"
4645
4746
jq -n \
4847
--arg login "$login" \
4948
--arg msg "$msg" \
50-
--arg foot "$repo_short - $BRANCH • $time_str" \
49+
--arg foot "$repo_short - $BRANCH" \
5150
--arg iso "$iso_utc" \
5251
'{
5352
username: "GitHub",

0 commit comments

Comments
 (0)