Skip to content

Commit 45b2a96

Browse files
committed
Make GitHub comment more descriptive and easier to regex match
1 parent 1db5328 commit 45b2a96

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/dvc-diff.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
# | added | pygmt/tests/baseline/test_image.png |
3131
- name: Put list of images that were added or changed into report
3232
run: |
33+
echo -e "## Summary of changed images\n" > report.md
34+
echo -e "This is an auto-generated report of images that have changed on the DVC remote\n" >> report.md
3335
dvc diff --show-md master HEAD >> report.md
3436
cat report.md
3537
@@ -42,7 +44,7 @@ jobs:
4244
id: image-diff
4345
run: |
4446
# Get just the filename of the changed image from the report
45-
tail --lines=+3 report.md | cut --delimiter=' ' --fields=7 > diff_files.txt
47+
tail --lines=+5 report.md | cut --delimiter=' ' --fields=7 > diff_files.txt
4648
4749
# Append each image to the markdown report
4850
echo -e "## Image diff(s)\n" >> report.md
@@ -66,7 +68,7 @@ jobs:
6668
with:
6769
issue-number: ${{ github.event.pull_request.number }}
6870
comment-author: 'github-actions[bot]'
69-
body-includes: '## Image diff(s)'
71+
body-includes: 'This is an auto-generated report of images that have changed on the DVC remote'
7072

7173
- name: Create comment with image diff report
7274
if: steps.fc.outputs.comment-id == ''

0 commit comments

Comments
 (0)