Skip to content

Commit f3a4278

Browse files
committed
Update logic for deciding whether js has changed
1 parent 9e097ec commit f3a4278

File tree

1 file changed

+9
-5
lines changed

1 file changed

+9
-5
lines changed

Diff for: .github/workflows/check-js-build.yml

+9-5
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
1-
on:
2-
pull_request:
3-
paths:
4-
- 'js/**'
5-
- 'plotly/labextension/**'
1+
on: push
62

73
jobs:
84
check-js-build:
@@ -26,6 +22,14 @@ jobs:
2622
run: |
2723
cp -R plotly/labextension/ plotly/labextension-tmp/
2824
25+
- name: Check if JS or labextension files changed
26+
run: |
27+
git fetch origin ${{ github.base_ref }}
28+
CHANGED=$(git diff --name-only origin/${{ github.base_ref }}...HEAD | grep -E '^js/|^plotly/labextension/' || true)
29+
if [ -z "$CHANGED" ]; then
30+
exit 0
31+
fi
32+
2933
- name: Install dependencies
3034
run: |
3135
curl -LsSf https://astral.sh/uv/install.sh | sh

0 commit comments

Comments
 (0)