Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit f3a4278

Browse files
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

‎.github/workflows/check-js-build.yml‎

Lines changed: 9 additions & 5 deletions
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)

AltStyle によって変換されたページ (->オリジナル) /