From 67145b98e23e414afd01279eba0c4e1c4a51a31e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E0=A4=95=E0=A4=BE=E0=A4=B0=E0=A4=A4=E0=A5=8B=E0=A4=AB?= =?UTF-8?q?=E0=A5=8D=E0=A4=AB=E0=A5=87=E0=A4=B2=E0=A4=B8=E0=A5=8D=E0=A4=95?= =?UTF-8?q?=E0=A5=8D=E0=A4=B0=E0=A4=BF=E0=A4=AA=E0=A5=8D=E0=A4=9F=E2=84=A2?= Date: Mon, 30 Dec 2024 15:17:11 +0100 Subject: [PATCH] ci: Schedule chromatic builds on master (no-changelog) (#12404) --- .github/workflows/chromatic.yml | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index feb39f1f4f7f2..4e77fbd580fb3 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -1,6 +1,8 @@ name: Chromatic on: + schedule: + - cron: '0 0 * * *' workflow_dispatch: pull_request_review: types: [submitted] @@ -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/create-or-update-comment@v4.0.0 with: issue-number: ${{ github.event.pull_request.number }} @@ -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/create-or-update-comment@v4.0.0 with: issue-number: ${{ github.event.pull_request.number }}