From 8462484f8920c5eb2290d06ebb389abab0b6b664 Mon Sep 17 00:00:00 2001 From: Edward McFarlane Date: Wed, 3 Jul 2024 12:16:16 -0400 Subject: [PATCH] Always include steps in summary --- .github/workflows/ci.yaml | 2 +- dist/index.js | 9 +++------ src/main.ts | 7 +++---- 3 files changed, 7 insertions(+), 11 deletions(-) diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index e3fe009..e96178b 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -164,7 +164,7 @@ jobs: script: | const expectedComment = `The latest Buf updates on your PR. -
NameStatus
build✅ passed
format❌ failed
breaking✅ passed
+
NameStatus
build✅ passed
lint⏩ skipped
format❌ failed
breaking✅ passed
` const commentTag = ""; const { owner, repo } = context.repo; diff --git a/dist/index.js b/dist/index.js index 9825219..988f2f8 100644 --- a/dist/index.js +++ b/dist/index.js @@ -54239,13 +54239,10 @@ function createSummary(inputs, steps) { { data: "Status", header: true }, ], ["build", message(steps.build?.status)], + ["lint", message(steps.lint?.status)], + ["format", message(steps.format?.status)], + ["breaking", message(steps.breaking?.status)], ]; - if (inputs.lint) - table.push(["lint", message(steps.lint?.status)]); - if (inputs.format) - table.push(["format", message(steps.format?.status)]); - if (inputs.breaking) - table.push(["breaking", message(steps.breaking?.status)]); if (inputs.push) table.push(["push", message(steps.push?.status)]); if (inputs.archive) diff --git a/src/main.ts b/src/main.ts index c1bb8a6..b9780b9 100644 --- a/src/main.ts +++ b/src/main.ts @@ -85,11 +85,10 @@ function createSummary(inputs: Inputs, steps: Steps): typeof core.summary { { data: "Status", header: true }, ], ["build", message(steps.build?.status)], + ["lint", message(steps.lint?.status)], + ["format", message(steps.format?.status)], + ["breaking", message(steps.breaking?.status)], ]; - if (inputs.lint) table.push(["lint", message(steps.lint?.status)]); - if (inputs.format) table.push(["format", message(steps.format?.status)]); - if (inputs.breaking) - table.push(["breaking", message(steps.breaking?.status)]); if (inputs.push) table.push(["push", message(steps.push?.status)]); if (inputs.archive) table.push(["archive", message(steps.archive?.status)]); return core.summary.addTable(table);