|
|
|
@ -88,22 +88,20 @@ jobs: |
|
|
|
|
A=($scenes) |
|
|
|
|
|
|
|
|
|
DIFF="" |
|
|
|
|
open=false |
|
|
|
|
TABLE="<summary>All Screenshots</summary>" |
|
|
|
|
TABLE="<details><summary>All Screenshots</summary>" |
|
|
|
|
TABLE="${TABLE}<table>" |
|
|
|
|
|
|
|
|
|
for ((i=0; i<${#A[*]}; i=i+1)); |
|
|
|
|
do |
|
|
|
|
|
|
|
|
|
if ! compare -fuzz 2% -highlight-color DeepSkyBlue1 -lowlight-color Black -compose Src ${{ github.workspace }}/master_ui/${A[$i]}.png ${{ github.workspace }}/pr_ui/${A[$i]}.png ${{ github.workspace }}/pr_ui/${A[$i]}_diff.png; then |
|
|
|
|
open=true |
|
|
|
|
convert ${{ github.workspace }}/pr_ui/${A[$i]}_diff.png -transparent black mask.png |
|
|
|
|
composite mask.png ${{ github.workspace }}/master_ui/${A[$i]}.png composite_diff.png |
|
|
|
|
convert -delay 100 ${{ github.workspace }}/master_ui/${A[$i]}.png composite_diff.png -loop 0 ${{ github.workspace }}/pr_ui/${A[$i]}_diff.gif |
|
|
|
|
|
|
|
|
|
mv ${{ github.workspace }}/master_ui/${A[$i]}.png ${{ github.workspace }}/pr_ui/${A[$i]}_master_ref.png |
|
|
|
|
|
|
|
|
|
DIFF="${DIFF}<details>" |
|
|
|
|
DIFF="${DIFF}<details open>" |
|
|
|
|
DIFF="${DIFF}<summary>${A[$i]} : \$\${\\color{red}\\text{DIFFERENT}}\$\$</summary>" |
|
|
|
|
DIFF="${DIFF}<table>" |
|
|
|
|
|
|
|
|
@ -133,14 +131,7 @@ jobs: |
|
|
|
|
fi |
|
|
|
|
done |
|
|
|
|
|
|
|
|
|
TABLE="${TABLE}</table>" |
|
|
|
|
TABLE="${TABLE}</details>" |
|
|
|
|
|
|
|
|
|
if $open; then |
|
|
|
|
TABLE="<details open>${TABLE}" |
|
|
|
|
else |
|
|
|
|
TABLE="<details>${TABLE}" |
|
|
|
|
fi |
|
|
|
|
TABLE="${TABLE}</table></details>" |
|
|
|
|
|
|
|
|
|
echo "DIFF=$DIFF$TABLE" >> "$GITHUB_OUTPUT" |
|
|
|
|
|
|
|
|
|