Skip to content

Commit 227f706

Browse files
committed
Print affected files.
1 parent 8c7aa70 commit 227f706

2 files changed

Lines changed: 13 additions & 4 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -186,16 +186,16 @@ jobs:
186186
-e 's/^##\[group\](.*)/<details><summary>\1<\/summary>\n/g' \
187187
-e 's/^##\[endgroup\]/<\/details>/g' \
188188
-e 's/^##\[warning\](.*)/> [!WARNING]\n> \1/g' \
189-
| awk -v sha="$run_sha" -v site="${{ matrix.site }}" '
189+
| awk -v sha="$run_sha" -v site="https://github.com/originlab/${{ matrix.site }}" '
190190
/^File: / {
191191
file_path = $2
192-
print "- File: [" file_path "](https://github.com/originlab/" site "/blob/" sha "/" file_path ")"
193-
next
192+
print "- File: [" file_path "](" site "/blob/" sha "/" file_path ")"
193+
next
194194
}
195195
/^[[:space:]]+Ln [0-9]+,/ {
196196
match($0, /Ln [0-9]+/)
197197
line_num = substr($0, RSTART + 3, RLENGTH - 3)
198-
print " - [Ln " line_num ", " substr($0, index($0, "Col")) "](https://github.com/originlab/" site "/blob/" sha "/" file_path "#L" line_num ")"
198+
print " - [Ln " line_num ", " substr($0, index($0, "Col")) "](" site "/blob/" sha "/" file_path "#L" line_num ")"
199199
next
200200
}
201201
{ print }

converter/generator/ProblemSummarizer.cs

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,15 @@ public override void WriteSummary(ProblemRecorder recorder, TextWriter textWrite
9090

9191
textWriter.WriteLine("::endgroup::");
9292
}
93+
94+
textWriter.WriteLine($"::group::Show affected files");
95+
96+
foreach (var file in locations.Select(l => l.filePosition.File).Distinct())
97+
{
98+
textWriter.WriteLine($"- {file}");
99+
}
100+
101+
textWriter.WriteLine("::endgroup::");
93102
}
94103
}
95104
else

0 commit comments

Comments
 (0)