Skip to content

Commit

Permalink
ci: run chromatic build on PR comment (#336)
Browse files Browse the repository at this point in the history
  • Loading branch information
smithoo authored Feb 19, 2025
1 parent dfa28f7 commit e1db794
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
@@ -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
Expand Down

0 comments on commit e1db794

Please sign in to comment.