From 463d452a49d0ecd5c29442ebcf7c128ff98c9096 Mon Sep 17 00:00:00 2001 From: Sean Coughlin Date: Thu, 16 May 2024 08:05:28 -0500 Subject: [PATCH] Add Lighthouse comments only on PRs --- .github/workflows/ci.yml | 1 + 1 file changed, 1 insertion(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index c325f82..110d78b 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -116,6 +116,7 @@ jobs: const { formatLighthouseResults } = await import('${{github.workspace}}/scripts/lighthouse/index.js') await formatLighthouseResults({core}) - name: Add Comment to PR + if: ${{ github.event_name == 'pull_request' && github.base_ref != 'master' }} # Replace the previous message with our formatted lighthouse results uses: thollander/actions-comment-pull-request@d61db783da9abefc3437960d0cce08552c7c004f # v2.4.2 with: