Skip to content

Commit

Permalink
Collapsible image diff section and use correct git SHA
Browse files Browse the repository at this point in the history
Co-Authored-By: Dongdong Tian <[email protected]>
  • Loading branch information
weiji14 and seisman committed Mar 26, 2021
1 parent 6fa103f commit 554ba6d
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/dvc-diff.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,13 +52,17 @@ jobs:
# Append each image to the markdown report
echo -e "## Image diff(s)\n" >> report.md
echo -e "<details>\n" >> report.md
while IFS= read -r line; do
echo -e "- $line \n" >> report.md
cml-publish --title $line --md "$line" >> report.md
done < diff_files.txt
# Mention GitHub SHA in the report
echo -e "Report last updated at commit $GITHUB_SHA" >> report.md
echo -e "</details>\n" >> report.md
# Mention git commit SHA in the report
echo -e "Report last updated at commit ${{ github.event.pull_request.head.sha }}" >> report.md
# Format report to escape newlines before publishing as GitHub comment
report=$(cat report.md)
Expand Down

0 comments on commit 554ba6d

Please sign in to comment.