File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed
Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change @@ -110,9 +110,14 @@ jobs:
110110 CHANGED_FILES : ${{ steps.changed.outputs.files }}
111111 RUN_ID : ${{ github.run_id }}
112112 REPO : ${{ github.repository }}
113+ COMMIT_SHA : ${{ github.event.pull_request.head.sha }}
113114 run : |
114115 # Base URL for GitHub Pages coverage (from main branch)
115116 PAGES_BASE="https://lambda-sh.github.io/lambda/coverage"
117+ # Get current timestamp in UTC
118+ TIMESTAMP=$(date -u +"%Y-%m-%d %H:%M:%S UTC")
119+ # Short commit SHA for display
120+ SHORT_SHA="${COMMIT_SHA:0:7}"
116121
117122 # Build the comment body
118123 {
@@ -169,6 +174,8 @@ jobs:
169174 echo ""
170175 echo "---"
171176 echo "*Generated by [cargo-llvm-cov](https://github.com/taiki-e/cargo-llvm-cov) · [Latest main coverage](${PAGES_BASE})*"
177+ echo ""
178+ echo "<sub>Last updated: ${TIMESTAMP} · Commit: [\`${SHORT_SHA}\`](https://github.com/${REPO}/commit/${COMMIT_SHA})</sub>"
172179 } > comment_body.md
173180
174181 # Store as output (handle multiline)
You can’t perform that action at this time.
0 commit comments