Skip to content

Commit e187822

Browse files
authored
Update action.yml
1 parent fa1ee66 commit e187822

File tree

1 file changed

+12
-5
lines changed
  • .github/actions/Emscripten-Notebook-Tests

1 file changed

+12
-5
lines changed

.github/actions/Emscripten-Notebook-Tests/action.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -82,9 +82,16 @@ runs:
8282
# Jupyter Lite website.
8383
pkill -9 timeout
8484
pkill -9 jupyter-lite
85-
echo "All Processes using port 8000"
86-
lsof -i :8000
87-
echo "Killing all processes using port 8000"
85+
echo "All Processes using port 127.0.0.1"
86+
export PIDS=$(lsof -t -i @127.0.0.1)
87+
echo $PIDS
8888
kill -9 $(lsof -ti :8000)
89-
echo "All Processes using port 8000"
90-
lsof -i :8000
89+
if [ -z "$PIDS" ]; then
90+
echo 0
91+
else
92+
echo "Killing processes: $PIDS"
93+
kill -9 $PIDS
94+
fi
95+
echo "All Processes using port 127.0.0.1"
96+
export PIDS=$(lsof -t -i @127.0.0.1)
97+
echo $PIDS

0 commit comments

Comments
 (0)