Skip to content

Commit b386b98

Browse files
committed
Run Chromatic for Dependabot PRs if run_chromatic label is present
1 parent daec525 commit b386b98

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

.github/workflows/dcr-chromatic.yml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,8 @@ jobs:
1111
name: Chromatic
1212
runs-on: ubuntu-latest
1313
# Run Chromatic only if `run_chromatic` label has been applied or we're
14-
# pushing to `main`. Skip if this is a Dependabot PR as this is handled
15-
# by the subsequent job.
16-
if: |
17-
(contains(github.event.pull_request.labels.*.name, 'run_chromatic') || github.ref == 'refs/heads/main') &&
18-
(!contains(github.event.pull_request.labels.*.name, 'dependencies') &&
19-
github.event.pull_request.user.login != 'dependabot')
14+
# pushing to `main`.
15+
if: contains(github.event.pull_request.labels.*.name, 'run_chromatic') || github.ref == 'refs/heads/main'
2016
steps:
2117
- name: Checkout - On Pull Request
2218
uses: actions/checkout@v4

0 commit comments

Comments
 (0)