Skip to content

Commit

Permalink
Trying to make link work.
Browse files Browse the repository at this point in the history
  • Loading branch information
marvin19 committed Apr 15, 2024
1 parent 7d422b2 commit 957ef26
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,16 +42,15 @@ jobs:
id: lhci
run: |
lhci autorun --config=.lighthouserc.cjs
echo "::set-output name=report_url::$(<some-command-to-get-url>)"
continue-on-error: true
echo "report_url=http://localhost:4173/report.html" >> $GITHUB_ENV # Assume static URL for demonstration
- name: Post Comment on PR
uses: peter-evans/create-or-update-comment@v1
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
${{ steps.lhci.outcome == 'failure' && '❌ Lighthouse checks failed. Please review the Lighthouse report in the Artifacts.' || '✅ Lighthouse checks passed successfully!' }}
Report URL: [View Lighthouse Report](${{ steps.lhci.outputs.report_url }})
Report URL: [View Lighthouse Report](${{ env.report_url }})
token: ${{ secrets.GITHUB_TOKEN }}

- name: Fail the Workflow if Lighthouse Failed
Expand Down

0 comments on commit 957ef26

Please sign in to comment.