From d79207285a9c93db49c9984933e5ece479954f57 Mon Sep 17 00:00:00 2001 From: Bart van der Braak Date: Sun, 11 Jun 2023 19:58:14 +0200 Subject: [PATCH] fix: Remove polling variable, resolved URL issue --- .github/workflows/lighthouse-report.yaml | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.github/workflows/lighthouse-report.yaml b/.github/workflows/lighthouse-report.yaml index 262ee56..50872b1 100644 --- a/.github/workflows/lighthouse-report.yaml +++ b/.github/workflows/lighthouse-report.yaml @@ -55,7 +55,6 @@ jobs: with: deployment-url: ${{ steps.vercel_preview_url.outputs.preview_url }} timeout: 30 - poll-interval: 1 - name: Build Unlighthouse report run: | @@ -83,7 +82,7 @@ jobs: const score = res => res >= 90 ? '🟢' : res >= 50 ? '🟠' : '🔴'; - const reportUrl = `https://${process.env.GITHUB_REPOSITORY_OWNER}.github.io/${process.env.GITHUB_EVENT.repository.name}/${process.env.BRANCH_NAME}`; + const reportUrl = `https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/${{ env.BRANCH_NAME }}`; const comment = [ `⚡️ Lighthouse report for the changes in this PR:`,