From e1db794cd7292cd8b29cd14796b33502e5ef9bc7 Mon Sep 17 00:00:00 2001 From: smithoo Date: Thu, 20 Feb 2025 03:43:54 +0900 Subject: [PATCH] ci: run chromatic build on PR comment (#336) --- .github/workflows/chromatic.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/chromatic.yml b/.github/workflows/chromatic.yml index 22669346..5772f67f 100644 --- a/.github/workflows/chromatic.yml +++ b/.github/workflows/chromatic.yml @@ -1,12 +1,12 @@ name: Chromatic on: - pull_request_review: - types: [submitted] + pull_request_review_comment: + types: [created, edited] jobs: chromatic-build: - if: ${{ github.event.pull_request.base.ref == 'main' && github.event.review.state == 'approved' }} + if: ${{ contains(github.event.comment.body, 'chromatic-build') }} runs-on: ubuntu-latest steps: - name: Checkout code