Skip to content

Commit

Permalink
ci: Schedule chromatic builds on master (no-changelog) (#12404)
Browse files Browse the repository at this point in the history
  • Loading branch information
netroy authored Dec 30, 2024
1 parent 1fe6a27 commit 67145b9
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
name: Chromatic

on:
schedule:
- cron: '0 0 * * *'
workflow_dispatch:
pull_request_review:
types: [submitted]
Expand Down Expand Up @@ -70,7 +72,7 @@ jobs:
exitZeroOnChanges: false

- name: Success comment
if: steps.chromatic_tests.outcome == 'success'
if: steps.chromatic_tests.outcome == 'success' && github.ref != 'refs/heads/master'
uses: peter-evans/[email protected]
with:
issue-number: ${{ github.event.pull_request.number }}
Expand All @@ -80,7 +82,7 @@ jobs:
:white_check_mark: No visual regressions found.
- name: Fail comment
if: steps.chromatic_tests.outcome != 'success'
if: steps.chromatic_tests.outcome != 'success' && github.ref != 'refs/heads/master'
uses: peter-evans/[email protected]
with:
issue-number: ${{ github.event.pull_request.number }}
Expand Down

0 comments on commit 67145b9

Please sign in to comment.