mirror of
https://github.com/Magnus167/rustframe.git
synced 2025-08-20 04:19:59 +00:00
Add step to save last commit date as JSON in coverage report
This commit is contained in:
parent
01389ac133
commit
6582859c5f
12
.github/workflows/docs-and-testcov.yml
vendored
12
.github/workflows/docs-and-testcov.yml
vendored
@ -67,6 +67,17 @@ jobs:
|
||||
color:"blue"}' \
|
||||
tarpaulin-report.json \
|
||||
> tarpaulin-badge.json
|
||||
|
||||
- name: Save last commit date JSON
|
||||
run: |
|
||||
last_commit_date=$(git log -1 --format=%cd --date=short)
|
||||
jq --arg date "$last_commit_date" \
|
||||
'{schemaVersion:1,
|
||||
label:"last-commit-date",
|
||||
message:$date,
|
||||
color:"blue"}' \
|
||||
<(echo '{}') \
|
||||
> last-commit-date.json
|
||||
|
||||
- name: Copy files to output directory
|
||||
run: |
|
||||
@ -74,6 +85,7 @@ jobs:
|
||||
cp tarpaulin-report.html target/doc/rustframe/
|
||||
cp tarpaulin-report.json target/doc/rustframe/
|
||||
cp tarpaulin-badge.json target/doc/rustframe/
|
||||
cp last-commit-date.json target/doc/rustframe/
|
||||
echo "<meta http-equiv=\"refresh\" content=\"0; url=rustframe\">" > target/doc/index.html
|
||||
|
||||
- name: Upload Pages artifact
|
||||
|
Loading…
x
Reference in New Issue
Block a user