From 0908694666419a1c91d298de3d2f465df1cadee4 Mon Sep 17 00:00:00 2001 From: Jonathan Johnson Date: Fri, 5 Jan 2024 12:59:36 -0800 Subject: [PATCH] Re-run the percy job anytime the PR is changed This is better than only running it when the label is applied, once the label is on the PR it should run on each change. --- .github/workflows/percy.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/percy.yml b/.github/workflows/percy.yml index e4a7e9e5e..42b8f0f36 100644 --- a/.github/workflows/percy.yml +++ b/.github/workflows/percy.yml @@ -5,7 +5,7 @@ on: tags: - '*' pull_request_target: - types: [labeled] + types: [labeled,opened,reopened,synchronize] schedule: - cron: "15 23 * * 2,4" # T,Th in the afternoon (UTC) workflow_dispatch: @@ -23,7 +23,7 @@ env: jobs: percy: name: Test and Capture Screenshots - if: ${{ github.event.action != 'labeled' || github.event.label.name == 'run percy tests' }} + if: contains(github.event.pull_request.labels.*.name, 'run percy tests') runs-on: ubuntu-latest timeout-minutes: 20 steps: