Skip to content

Commit

Permalink
ci(preview): Don't treat the input as JSON (#16)
Browse files Browse the repository at this point in the history
GitHub Actions will embed it as plain text.
  • Loading branch information
5ouma authored Nov 9, 2024
1 parent eaeca08 commit 9de615e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 ? "🟧" : "🔺";
Expand Down

0 comments on commit 9de615e

Please sign in to comment.