Lighthouse-github-action-comment icon indicating copy to clipboard operation
Lighthouse-github-action-comment copied to clipboard

Action doesn't run on every PR

Open michaelflores-italic opened this issue 4 years ago • 1 comments

I'm noticing that sometimes the Action doesn't attempt to run on a PR, even though Vercel had deployed the PR. When I look under the repo's actions tab, I can see that it wasn't that the Action failed but that the action was never triggered for the PR. It should trigger due to a Vercel comment right?

michaelflores-italic avatar Oct 07 '21 12:10 michaelflores-italic

Hey @michaelflores-italic

If you want to run it on every PR you should change this

name: Vercel Preview URL Lighthouse Audit

on:
  issue_comment:
    types: [edited]

to

name: Vercel Preview URL Lighthouse Audit

on: [pull_request]

or you can select the branch you want

name: Vercel Preview URL Lighthouse Audit

on:
  push:
    branches:
      - main

flexbox avatar Apr 20 '22 08:04 flexbox