Skip to content

Commit

Permalink
ci: fix lighthouse report pipeline
Browse files Browse the repository at this point in the history
Rename "gitHubAcessToken" to "gitHubAccessToken".
Update regex to match the preview URL and not all the characters between the two URLs.
  • Loading branch information
grantwforsythe authored May 7, 2024
1 parent b247ab3 commit 9583c88
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/lighthouse.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
name: Lighthouse Report

on: issue_comment

jobs:
Expand All @@ -13,16 +15,15 @@ jobs:
fetch-depth: 0

- name: Get preview URL
id: preview-url
env:
BODY: ${{ github.event.comment.body }}
run: |
PREVIEW_URL=$(echo "$BODY" | grep -o 'https:\/\/.*\.onrender\.com' | head -n 1)
PREVIEW_URL=$(echo "$BODY" | grep -o 'https://[a-zA-Z0-9.-]*\.onrender\.com' | head -n 1)
echo "PREVIEW_URL=$PREVIEW_URL" >> $GITHUB_ENV
- name: Lighthouse Report
uses: foo-software/lighthouse-check-action@master
with:
urls: '${{ env.PREVIEW_URL }}'
prCommentEnabled: true
gitHubAcessToken: ${{ secrets.GITHUB_TOKEN }}
gitHubAccessToken: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 9583c88

Please sign in to comment.