mirror of
https://github.com/logto-io/logto.git
synced 2024-12-16 20:26:19 -05:00
ci: fix file size diff comment display (#784)
This commit is contained in:
parent
2161856bcd
commit
4cace12f00
1 changed files with 3 additions and 3 deletions
6
.github/workflows/update-pr-metadata.yml
vendored
6
.github/workflows/update-pr-metadata.yml
vendored
|
@ -80,12 +80,12 @@ jobs:
|
|||
const filesHeader = `|Name|Diff|\n|---|---|\n`;
|
||||
const filesData = result.map((row) => {
|
||||
const [diff, filename] = row.split('\t');
|
||||
return `|${filename}|${format(Number(diff))}|\n`;
|
||||
});
|
||||
return `|${filename}|${format(Number(diff))}|`;
|
||||
}).join('\n');
|
||||
|
||||
return `#### Size Diff (Compare to \`master\`)\n**Total** ${format(diff)}\n${
|
||||
result.length ? `\n${filesHeader}${filesData}` : ''
|
||||
}`;
|
||||
}\n`;
|
||||
|
||||
- uses: marocchino/sticky-pull-request-comment@v2
|
||||
with:
|
||||
|
|
Loading…
Reference in a new issue