Skip to content

Commit

Permalink
fix(chromatic): only do path checking on push
Browse files Browse the repository at this point in the history
  • Loading branch information
dcshzj committed Sep 20, 2023
1 parent 90ae047 commit ea1a82b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/chromatic.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,8 @@ jobs:
with:
fetch-depth: 0 # 👈 Required to retrieve git history

- name: Check for changes
- name: Check for changes (push)
if: ${{ github.event_name == 'push' }}
uses: dorny/paths-filter@v2
id: filter
with:
Expand All @@ -74,7 +75,7 @@ jobs:
- 'src/styles/**'
- name: Set environment variable to run Chromatic build
if: ${{ (github.event_name == 'push' || (steps.check.outputs.triggered == 'true' && github.event_name == 'issue_comment' && github.event.issue.pull_request)) && steps.filter.outputs.frontend == 'true' }}
if: ${{ ((github.event_name == 'push' && steps.filter.outputs.frontend == 'true') || (steps.check.outputs.triggered == 'true' && github.event_name == 'issue_comment' && github.event.issue.pull_request)) }}
run: echo "ISOMER_RUN_CHROMATIC_BUILD=true" >> $GITHUB_ENV

# This extra step is not in the original chromatic workflow.
Expand Down

0 comments on commit ea1a82b

Please sign in to comment.