From 9de615ec9d07a72eb503aefd79648e4ba2e43411 Mon Sep 17 00:00:00 2001 From: Souma <101255979+5ouma@users.noreply.github.com> Date: Sat, 9 Nov 2024 17:14:53 +0900 Subject: [PATCH] ci(preview): Don't treat the input as JSON (#16) GitHub Actions will embed it as plain text. --- .github/workflows/preview.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/preview.yml b/.github/workflows/preview.yml index 11ec665..3a6f859 100644 --- a/.github/workflows/preview.yml +++ b/.github/workflows/preview.yml @@ -56,7 +56,7 @@ jobs: with: result-encoding: string script: | - const manifest = JSON.parse("${{ steps.lighthouse.outputs.manifest }}"); + const manifest = ${{ steps.lighthouse.outputs.manifest }}; const gauge = Object.entries(manifest[0].summary).map(([label, percentage]) => { const score = Math.round(percentage * 100); const icon = score >= 90 ? "🟢" : score >= 50 ? "🟧" : "🔺";