From 86fee770e1a17fd18210f923a11ad412ca98b091 Mon Sep 17 00:00:00 2001 From: Charles Bochet Date: Mon, 31 Jul 2023 18:23:39 -0700 Subject: [PATCH] Update chromatic CI trigger --- .github/workflows/ci-chromatic.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/ci-chromatic.yaml b/.github/workflows/ci-chromatic.yaml index 9ff1a0f32b03..16cabdcaaac3 100644 --- a/.github/workflows/ci-chromatic.yaml +++ b/.github/workflows/ci-chromatic.yaml @@ -4,11 +4,11 @@ on: push: branches: - main - issue_comment: - types: [created] + pull_request_target: + types: [labeled] jobs: chromatic-deployment: - if: ${{ (github.event.issue.pull_request && contains(github.event.comment.body, '@chromatic')) || github.event_name == 'push' }} + if: ${{ contains(github.event.*.labels.*.name, 'run-chromatic') }} || github.event_name == 'push' }} runs-on: ubuntu-latest env: REACT_APP_SERVER_BASE_URL: http://127.0.0.1:3000