Skip to content

Commit 6dff85d

Browse files
committed

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
@@ -185,14 +185,16 @@ jobs:
185185
path: reports_repo/${{ env.report_dir }}
186186

187187
- name: "Push to report repo"
188+
env:
189+
COMMIT_MESSAGE: ${{ github.event.head_commit.message }}
188190
run: |
189191
set -xe
190192
# Make the redirect to the latest report.
191193
echo "<html><head>" > reports_repo/latest.html
192194
echo "<meta http-equiv='refresh' content='0;url=${{ env.url }}' />" >> reports_repo/latest.html
193195
echo "<body>Coverage report redirect..." >> reports_repo/latest.html
194196
# Make the commit message.
195-
echo "${{ env.total }}% - ${{ github.event.head_commit.message }}" > commit.txt
197+
echo "${{ env.total }}% - $COMMIT_MESSAGE" > commit.txt
196198
echo "" >> commit.txt
197199
echo "${{ env.url }}" >> commit.txt
198200
echo "${{ env.sha10 }}: ${{ env.branch }}" >> commit.txt

0 commit comments

Comments
 (0)