Skip to content

Commit

Permalink
Re-run the percy job anytime the PR is changed
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
jrjohnson committed Jan 20, 2024
1 parent 8232f04 commit 19ea4a7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/percy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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:
Expand Down

0 comments on commit 19ea4a7

Please sign in to comment.