Skip to content

Commit 1aaa56a

Browse files
committed
[update] pipeline to track last update.
1 parent f96a03d commit 1aaa56a

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

.github/workflows/coverage.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff 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)

0 commit comments

Comments
 (0)