Update chromatic CI trigger
This commit is contained in:
6
.github/workflows/ci-chromatic.yaml
vendored
6
.github/workflows/ci-chromatic.yaml
vendored
@ -4,11 +4,11 @@ on:
|
|||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
pull_request_target:
|
issue_comment:
|
||||||
types: [labeled, opened, edited]
|
types: [created]
|
||||||
jobs:
|
jobs:
|
||||||
chromatic-deployment:
|
chromatic-deployment:
|
||||||
if: ${{ contains(github.event.*.labels.*.name, 'run-chromatic') }} || github.event_name == 'push' }}
|
if: ${{ (github.event.issue.pull_request && contains(github.event.comment.body, '@chromatic')) || github.event_name == 'push' }}
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
env:
|
env:
|
||||||
REACT_APP_SERVER_BASE_URL: http://127.0.0.1:3000
|
REACT_APP_SERVER_BASE_URL: http://127.0.0.1:3000
|
||||||
|
|||||||
Reference in New Issue
Block a user