mirror of
https://github.com/daveallie/crosspoint-reader.git
synced 2026-02-04 14:47:37 +03:00
fix: format firmware stats in PR comment as code block
This commit is contained in:
parent
873611b989
commit
826ccb2d25
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@ -94,7 +94,7 @@ jobs:
|
|||||||
const marker = '<!-- firmware-stats -->';
|
const marker = '<!-- firmware-stats -->';
|
||||||
const ram = `${{ steps.fw_stats.outputs.ram_line }}`.trim();
|
const ram = `${{ steps.fw_stats.outputs.ram_line }}`.trim();
|
||||||
const flash = `${{ steps.fw_stats.outputs.flash_line }}`.trim();
|
const flash = `${{ steps.fw_stats.outputs.flash_line }}`.trim();
|
||||||
const body = `${marker}\n**Firmware build stats**\n\n- ${ram || 'RAM: not found'}\n- ${flash || 'Flash: not found'}`;
|
const body = `${marker}\n**Firmware build stats**\n\n\`\`\`\n${ram || 'RAM: not found'}\n${flash || 'Flash: not found'}\n\`\`\``;
|
||||||
const { data: comments } = await github.rest.issues.listComments({
|
const { data: comments } = await github.rest.issues.listComments({
|
||||||
owner: context.repo.owner,
|
owner: context.repo.owner,
|
||||||
repo: context.repo.repo,
|
repo: context.repo.repo,
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user