Skip to content

Commit

Permalink
check if process is running before killing
Browse files Browse the repository at this point in the history
  • Loading branch information
grqz authored Sep 15, 2024
1 parent e54276b commit bdde8c1
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,9 @@ jobs:
echo "::error title=Failed to run yt-dlp when testing HTTP server::\
yt-dlp returned $? exit status"
kill $NODE_PID
if ps -p $PID > /dev/null; then
kill $NODE_PID
fi
echo "::group::Logs from HTTP server"
cat "$SERVER_LOG_PATH"
Expand Down

0 comments on commit bdde8c1

Please sign in to comment.