Skip to content

Commit 4438e39

Browse files
committed
Merge branch 'master' into style-updates
2 parents 9932675 + 2003b52 commit 4438e39

1 file changed

Lines changed: 10 additions & 8 deletions

File tree

.github/workflows/comment.yml

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)