File tree Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Expand file tree Collapse file tree 2 files changed +3
-2
lines changed Original file line number Diff line number Diff 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' }}
Original file line number Diff line number Diff line change @@ -52,7 +52,6 @@ build_id="$7"
5252job_name=" $8 "
5353job_status=" $9 "
5454commit_sha=" ${10} "
55- commit_date=" ${11} "
5655run_attempt=" ${12} "
5756
5857echo " 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' )
121121comment_body=" Build for $commit_sha ($commit_date UTC)\n\n" ' ```' " \n$val \n" ' ```' " \n\n$build_link "
122122
123123# Fix new lines
You can’t perform that action at this time.
0 commit comments