Fix sed pattern to strip platform suffix in diff comment

This commit is contained in:
Ullrich Schäfer 2026-05-10 20:30:35 +02:00
parent 9a6a4bae40
commit bde195faf7
No known key found for this signature in database
GPG key ID: A32FF691A0F752D9

View file

@ -155,7 +155,7 @@ jobs:
body="## Visual regression failures"$'\n\n'
body+="The following tests produced screenshot diffs:"$'\n\n'
for diff in $diffs; do
name=$(basename "$diff" | sed 's/-diff-chromium-linux\.png//' | sed 's/-/ /g')
name=$(basename "$diff" | sed 's/-diff-chromium-[a-z]*\.png//' | sed 's/-/ /g')
body+="- \`$name\`"$'\n'
done
body+=$'\n'"**[Download diff screenshots artifact](https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }})** (expand the Visual Tests job → Artifacts)"$'\n\n'