Skip to content

Commit 7b68d12

Browse files
committed
build: use htmlpreview.github.com for simpler report publishing
1 parent dd724f6 commit 7b68d12

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/coverage.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ jobs:
178178
echo "sha10=$SHA10" >> $GITHUB_ENV
179179
echo "slug=$SLUG" >> $GITHUB_ENV
180180
echo "report_dir=$REPORT_DIR" >> $GITHUB_ENV
181-
echo "url=https://nedbat.github.io/coverage-reports/$REPORT_DIR" >> $GITHUB_ENV
181+
echo "url=https://htmlpreview.github.io/?https://github.com/nedbat/coverage-reports/blob/main/reports/$SLUG/htmlcov/index.html" >> $GITHUB_ENV
182182
echo "branch=${REF#refs/heads/}" >> $GITHUB_ENV
183183
184184
- name: "Summarize"
@@ -217,6 +217,8 @@ jobs:
217217
# Make the commit message.
218218
echo "${{ env.total }}% - $COMMIT_MESSAGE" > commit.txt
219219
echo "" >> commit.txt
220+
echo "[View the report](${{ env.url }})" >> commit.txt
221+
echo "" >> commit.txt
220222
echo "${{ env.url }}" >> commit.txt
221223
echo "${{ env.sha10 }}: ${{ env.branch }}" >> commit.txt
222224
# Commit.

0 commit comments

Comments
 (0)