Skip to content

Commit d4263d0

Browse files
committed
Translate links.
1 parent 1d9ee74 commit d4263d0

1 file changed

Lines changed: 14 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -186,7 +186,20 @@ jobs:
186186
-e 's/^##\[group\](.*)/<details><summary>\1<\/summary><pre>/g' \
187187
-e 's/^##\[endgroup\]/<\/pre><\/details>/g' \
188188
-e 's/^##\[warning\](.*)/> [!WARNING]\n> \1/g' \
189-
>> "$GITHUB_STEP_SUMMARY"
189+
| awk -v sha="$run_sha" -v site="${{ matrix.site }}" '
190+
/^File: / {
191+
file_path = $2
192+
print "File: [" file_path "](https://github.com/originlab" site "/blob/" sha "/" file_path ")"
193+
next
194+
}
195+
/^[[:space:]]+Ln [0-9]+,/ {
196+
match($0, /Ln [0-9]+/)
197+
line_num = substr($0, RSTART + 3, RLENGTH - 3)
198+
print "\t[Ln " line_num ", " substr($0, index($0, "Col")) "](https://github.com/originlab" site "/blob/" sha "/" file_path "#L" line_num ")"
199+
next
200+
}
201+
{ print }
202+
' >> "$GITHUB_STEP_SUMMARY"
190203
191204
echo 'Done.'
192205

0 commit comments

Comments
 (0)