Skip to content

Commit eedd56a

Browse files
committed
#2465: Fix commit date
1 parent 482de9d commit eedd56a

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

.github/workflows/build-docker-images.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,8 +118,9 @@ jobs:
118118
"${{ github.job }}" \
119119
"${{ steps.build-image.outcome }}" \
120120
"${{ github.sha }} " \
121-
"${{ github.event.head_commit.timestamp }}" \
122121
"${{ github.run_attempt }}"
122+
env:
123+
GH_TOKEN: ${{ github.token }}
123124

124125
- name: Upload coverage
125126
if: ${{ matrix.target == 'vt-build-amd64-ubuntu-22-04-gcc-11-cpp' }}

scripts/report_logs_in_comment.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,6 @@ build_id="$7"
5252
job_name="$8"
5353
job_status="$9"
5454
commit_sha="${10}"
55-
commit_date="${11}"
5655
run_attempt="${12}"
5756

5857
echo "job_status: $job_status"
@@ -118,6 +117,7 @@ build_link=$(
118117
)
119118

120119
# Build comment
120+
commit_date=$(gh api "repos/${GITHUB_REPOSITORY}/commits/${GITHUB_SHA}" --jq '.commit.committer.date')
121121
comment_body="Build for $commit_sha ($commit_date UTC)\n\n"'```'"\n$val\n"'```'"\n\n$build_link"
122122

123123
# Fix new lines

0 commit comments

Comments
 (0)