@@ -54,16 +54,18 @@ jobs:
5454 run : |
5555 echo "Here are screenshots of this commit:" >> comment.md
5656 echo "" >> comment.md # just for the newline
57- for aw_server in screenshots/aw-*; do
58- for aw_version in screenshots/$aw_server/*; do
57+ for aw_server_dir in screenshots/aw-*; do
58+ for aw_version_dir in $aw_server_dir/*; do
59+ aw_server=$(basename $aw_server_dir)
60+ aw_version=$(basename $aw_version_dir)
5961 echo "<details><summary>Screenshots using $aw_server $aw_version (click to expand)</summary>" >> comment.md
6062 echo '<p float="left">' >> comment.md
61- cml-publish screenshots/$aw_server/$aw_version /activity.png | sed -E 's/.+/<img width="45%" src="\0"\/>/' >> comment.md
62- cml-publish screenshots/$aw_server/$aw_version /timeline.png | sed -E 's/.+/<img width="45%" src="\0"\/>/' >> comment.md
63- cml-publish screenshots/$aw_server/$aw_version /settings.png | sed -E 's/.+/<img width="45%" src="\0"\/>/' >> comment.md
64- cml-publish screenshots/$aw_server/$aw_version /home.png | sed -E 's/.+/<img width="45%" src="\0"\/>/' >> comment.md
65- cml-publish screenshots/$aw_server/$aw_version /buckets.png | sed -E 's/.+/<img width="45%" src="\0"\/>/' >> comment.md
66- cml-publish screenshots/$aw_server/$aw_version /stopwatch.png | sed -E 's/.+/<img width="45%" src="\0"\/>/' >> comment.md
63+ cml-publish $aw_version_dir /activity.png | sed -E 's/.+/<img width="45%" src="\0"\/>/' >> comment.md
64+ cml-publish $aw_version_dir /timeline.png | sed -E 's/.+/<img width="45%" src="\0"\/>/' >> comment.md
65+ cml-publish $aw_version_dir /settings.png | sed -E 's/.+/<img width="45%" src="\0"\/>/' >> comment.md
66+ cml-publish $aw_version_dir /home.png | sed -E 's/.+/<img width="45%" src="\0"\/>/' >> comment.md
67+ cml-publish $aw_version_dir /buckets.png | sed -E 's/.+/<img width="45%" src="\0"\/>/' >> comment.md
68+ cml-publish $aw_version_dir /stopwatch.png | sed -E 's/.+/<img width="45%" src="\0"\/>/' >> comment.md
6769 echo '</p>' >> comment.md
6870 echo -n '</details>' >> comment.md
6971 done
0 commit comments