Skip to content

Commit c6034bc

Browse files
committed
format fix
1 parent b0c6423 commit c6034bc

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

.github/workflows/web-app-deployer.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -356,14 +356,17 @@ jobs:
356356
results.forEach((resultData, index) => {
357357
const result = resultData.summary;
358358
const links = ${{ steps.lighthouse-check.outputs.links }}
359+
console.log("index", index)
360+
console.log(result, links)
359361
360362
const formatResult = (res) => Math.round((res * 100))
361363
Object.keys(result).forEach(key => result[key] = formatResult(result[key]))
362364
363365
const score = res => res >= 90 ? '🟢' : res >= 50 ? '🟠' : '🔴'
366+
const link = Object.keys(links)[index]
364367
365368
comment.concat([
366-
`*Lighthouse ran on ${Object.keys(links)[index]}* (Desktop)`
369+
`*Lighthouse ran on ${link}* (Desktop)`
367370
`⚡️ HTML Report [Lighthouse report](${links[Object.keys(links)[index]]}) for the changes in this PR:`,
368371
'| Performance | Accessibility | Best Practices | SEO |',
369372
'| --- | --- | --- | --- |',

0 commit comments

Comments
 (0)