diff --git a/scripts/report_logs_in_comment.sh b/scripts/report_logs_in_comment.sh index 05126a4b3c..865ed93501 100755 --- a/scripts/report_logs_in_comment.sh +++ b/scripts/report_logs_in_comment.sh @@ -103,8 +103,9 @@ fi # Build comment commit_sha="$(git log --skip=1 -1 --pretty=format:%H)" +commit_date="$(TZ=UTC0 git show -s --format=%cd --date=format-local:'%Y-%m-%d %H:%M:%S' "$commit_sha")" build_link='[Build log](https://dev.azure.com/DARMA-tasking/DARMA/_build/results?buildId='"$build_id"'&view=logs&j='"$job_id"'&t='"$task_id)" -comment_body="Build for $commit_sha\n\n"'```'"\n$val\n"'```'"\n\n$build_link" +comment_body="Build for $commit_sha ($commit_date UTC)\n\n"'```'"\n$val\n"'```'"\n\n$build_link" # Fix new lines new_line="\n"