Skip to content

Commit edcf239

Browse files
committed
github(summary): convert filename and build name to unicode
Signed-off-by: CrazyMax <[email protected]>
1 parent e26a82d commit edcf239

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/github.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -237,7 +237,7 @@ export class GitHub {
237237
.addRaw(addLink('Learn more', 'https://docs.docker.com/go/build-summary/'))
238238
.addRaw('</p>')
239239
.addRaw(`<p>`)
240-
.addRaw(`:arrow_down: ${addLink(`<strong>${opts.uploadRes.filename}</strong>`, artifactRelativeURL)} (${Util.formatFileSize(opts.uploadRes.size)})`)
240+
.addRaw(`:arrow_down: ${addLink(`<strong>${Util.stringToUnicodeEntities(opts.uploadRes.filename)}</strong>`, artifactRelativeURL)} (${Util.formatFileSize(opts.uploadRes.size)})`)
241241
.addBreak()
242242
.addRaw(`This file includes <strong>${refsSize} build record${refsSize > 1 ? 's' : ''}</strong>.`)
243243
.addRaw(`</p>`)
@@ -264,7 +264,7 @@ export class GitHub {
264264
// prettier-ignore
265265
summaryTableData.push([
266266
{data: `<code>${ref.substring(0, 6).toUpperCase()}</code>`},
267-
{data: `<strong>${summary.name}</strong>`},
267+
{data: `<strong>${Util.stringToUnicodeEntities(summary.name)}</strong>`},
268268
{data: `${summary.status === 'completed' ? ':white_check_mark:' : summary.status === 'canceled' ? ':no_entry_sign:' : ':x:'} ${summary.status}`},
269269
{data: `${summary.numCachedSteps > 0 ? Math.round((summary.numCachedSteps / summary.numTotalSteps) * 100) : 0}%`},
270270
{data: summary.duration}

0 commit comments

Comments
 (0)