File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 '| --- | --- | --- | --- |',
You can’t perform that action at this time.
0 commit comments