Skip to content

Commit daac60e

Browse files
committed
Try different approach to only running on changes to js/
1 parent f167e6f commit daac60e

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.circleci/config.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -172,6 +172,10 @@ jobs:
172172

173173
steps:
174174
- checkout
175+
- run:
176+
name: Skip if no JS changes
177+
command: |
178+
git diff --name-only origin/main...HEAD | grep '^js/' || exit 0
175179
- run:
176180
name: Copy current files to a temporary directory
177181
command: |
@@ -440,10 +444,6 @@ workflows:
440444
- full_build
441445

442446
check_js_build:
443-
filters:
444-
paths:
445-
only:
446-
- js/**
447447
jobs:
448448
- check-js-build
449449

0 commit comments

Comments
 (0)