Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 87c5260

Browse files
committed
Update diff and only run CI when there are changes in the js directory
1 parent afc511a commit 87c5260

File tree

1 file changed

+10
-7
lines changed

1 file changed

+10
-7
lines changed

.circleci/config.yml

Lines changed: 10 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -189,15 +189,14 @@ jobs:
189189
- run:
190190
name: Check JupyterLab build artifacts
191191
command: |
192-
echo "Checking for uncommitted changes in plotly/labextension/..."
193-
git diff --exit-code plotly/labextension-tmp/ plotly/labextension/
194-
if [ $? -ne 0 ]; then
195-
echo "Uncommitted changes found in plotly/labextension/"
196-
echo "Please run 'git diff' to see the changes."
197-
echo "If you are sure you want to commit these changes, run 'git add plotly/labextension/' and 'git commit -m \"Update labextension\"'."
192+
diff -qr plotly/labextension-tmp/ plotly/labextension/ | grep -v '^Only in' > build_diff.txt
193+
194+
if [ -s build_diff.txt ]; then
195+
echo "Build artifacts differ from committed files:"
196+
cat build_diff.txt
198197
exit 1
199198
else
200-
echo "No uncommitted changes found in plotly/labextension/"
199+
echo "Build artifacts are identical to committed files."
201200
fi
202201
203202
# Percy
@@ -441,6 +440,10 @@ workflows:
441440
- full_build
442441

443442
check_js_build:
443+
filters:
444+
paths:
445+
only:
446+
- js/**
444447
jobs:
445448
- check-js-build
446449

0 commit comments

Comments
 (0)