Skip to content

Commit a19cdf9

Browse files
committed
Avoid uploading baseline images when image diffs detected
1 parent 7e5c299 commit a19cdf9

1 file changed

Lines changed: 0 additions & 20 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -287,18 +287,13 @@ jobs:
287287
echo "::warning::Image Diff Detected: baseline images may need to be updated."
288288
echo "Download the baseline images from the artifacts of this workflow run."
289289
echo "Add the new images to 'test/image/baselines/' and commit them to this pull request."
290-
mkdir -p build/baselines
291-
for f in build/test_images/*.png; do
292-
[ -f "$f" ] && cp "test/image/baselines/$(basename "$f")" build/baselines/ 2>/dev/null || true
293-
done
294290
295291
- uses: actions/upload-artifact@v7
296292
if: failure()
297293
with:
298294
name: baselines-default-diff
299295
retention-days: 7
300296
path: |
301-
build/baselines/
302297
build/test_images/
303298
build/test_images_diff/
304299
@@ -349,18 +344,13 @@ jobs:
349344
echo "::warning::Image Diff Detected: baseline images may need to be updated."
350345
echo "Download the baseline images from the artifacts of this workflow run."
351346
echo "Add the new images to 'test/image/baselines/' and commit them to this pull request."
352-
mkdir -p build/baselines
353-
for f in build/test_images/*.png; do
354-
[ -f "$f" ] && cp "test/image/baselines/$(basename "$f")" build/baselines/ 2>/dev/null || true
355-
done
356347
357348
- uses: actions/upload-artifact@v7
358349
if: failure()
359350
with:
360351
name: baselines-b64-diff
361352
retention-days: 7
362353
path: |
363-
build/baselines/
364354
build/test_images/
365355
build/test_images_diff/
366356
@@ -411,18 +401,13 @@ jobs:
411401
echo "::warning::Image Diff Detected: baseline images may need to be updated."
412402
echo "Download the baseline images from the artifacts of this workflow run."
413403
echo "Add the new images to 'test/image/baselines/' and commit them to this pull request."
414-
mkdir -p build/baselines
415-
for f in build/test_images/*.png; do
416-
[ -f "$f" ] && cp "test/image/baselines/$(basename "$f")" build/baselines/ 2>/dev/null || true
417-
done
418404
419405
- uses: actions/upload-artifact@v7
420406
if: failure()
421407
with:
422408
name: baselines-virtual-webgl-diff
423409
retention-days: 7
424410
path: |
425-
build/baselines/
426411
build/test_images/
427412
build/test_images_diff/
428413
@@ -465,18 +450,13 @@ jobs:
465450
echo "::warning::Image Diff Detected: baseline images may need to be updated."
466451
echo "Download the baseline images from the artifacts of this workflow run."
467452
echo "Add the new images to 'test/image/baselines/' and commit them to this pull request."
468-
mkdir -p build/baselines
469-
for f in build/test_images/*.png; do
470-
[ -f "$f" ] && cp "test/image/baselines/$(basename "$f")" build/baselines/ 2>/dev/null || true
471-
done
472453
473454
- uses: actions/upload-artifact@v7
474455
if: failure()
475456
with:
476457
name: baselines-mathjax3-diff
477458
retention-days: 7
478459
path: |
479-
build/baselines/
480460
build/test_images/
481461
build/test_images_diff/
482462

0 commit comments

Comments
 (0)