Skip to content

Commit 541122b

Browse files
committed
Pretty.
1 parent 7e674fa commit 541122b

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ jobs:
128128
notices=$(echo "$opt_log" | grep '^##\[notice\]' || true)
129129
130130
if [ -z "$warnings" ] && [ -z "$notices" ]; then
131-
printf "All images are optimized without problems.\n" >> "$GITHUB_STEP_SUMMARY"
131+
printf "All files are optimized without problems.\n" >> "$GITHUB_STEP_SUMMARY"
132132
else
133133
if [ -n "$warnings" ]; then
134134
echo "$warnings" | sed -E 's/^##\[warning\]Skipped `(.*)` because `(.*)`/\2\t\1/' \
@@ -137,16 +137,16 @@ jobs:
137137
msg = $1; file = $2
138138
if (msg != "" && file != "") {
139139
count[msg]++
140-
files[msg] = (files[msg] == "" ? "" : files[msg] "\n") "- `" file "`"
140+
files[msg] = files[msg] "- " file "\n"
141141
}
142142
}
143143
END {
144144
for (msg in count) {
145145
print "\n> [!WARNING]"
146-
print "> " count[msg] " file(s) skipped because " msg "\n"
147-
print "<details><summary>Show affected files</summary>\n"
146+
print "> " count[msg] " file(s) were skipped because `" msg "`\n"
147+
print "<details><summary>Show affected files</summary><pre>\n"
148148
print files[msg]
149-
print "\n</details>"
149+
print "</pre></details>"
150150
}
151151
}
152152
' >> "$GITHUB_STEP_SUMMARY"
@@ -158,16 +158,16 @@ jobs:
158158
msg = $1; file = $2
159159
if (msg != "" && file != "") {
160160
count[msg]++
161-
files[msg] = (files[msg] == "" ? "" : files[msg] "\n") "- `" file "`"
161+
files[msg] = files[msg] "- " file "\n"
162162
}
163163
}
164164
END {
165165
for (msg in count) {
166166
print "\n> [!NOTE]"
167-
print "> " count[msg] " file(s) optimized despite " msg "\n"
168-
print "<details><summary>Show affected files</summary>\n"
167+
print "> " count[msg] " file(s) were optimized despite `" msg "`\n"
168+
print "<details><summary>Show affected files</summary><pre>\n"
169169
print files[msg]
170-
print "\n</details>"
170+
print "</pre></details>"
171171
}
172172
}
173173
' >> "$GITHUB_STEP_SUMMARY"

0 commit comments

Comments
 (0)