Skip to content

Commit 6be4156

Browse files
committed
syntax
1 parent 30a680d commit 6be4156

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

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

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -353,7 +353,7 @@ jobs:
353353
script: |
354354
const results = ${{ steps.lighthouse-check.outputs.manifest }}
355355
let comment = []
356-
results.forEach(resultData => {
356+
results.forEach((resultData, index) => {
357357
const result = resultData.summary;
358358
const links = ${{ steps.lighthouse-check.outputs.links }}
359359
@@ -363,8 +363,8 @@ jobs:
363363
const score = res => res >= 90 ? '🟢' : res >= 50 ? '🟠' : '🔴'
364364
365365
comment.concat([
366-
`*Lighthouse ran on ${resultData.url}* (Desktop)`
367-
`⚡️ HTML Report [Lighthouse report](${links[resultData.url]}) for the changes in this PR:`,
366+
`*Lighthouse ran on ${Object.keys(links)[index]}* (Desktop)`
367+
`⚡️ HTML Report [Lighthouse report](${links[Object.keys(links)[index]]}) for the changes in this PR:`,
368368
'| Performance | Accessibility | Best Practices | SEO |',
369369
'| --- | --- | --- | --- |',
370370
`| ${score(result.performance)} ${result.performance} | ${score(result.accessibility)} ${result.accessibility} | ${score(result['best-practices'])} ${result['best-practices']} | ${score(result.seo)} ${result.seo} |`,

0 commit comments

Comments
 (0)