forked from AsyncTI4/TI4_map_generator_bot
-
Notifications
You must be signed in to change notification settings - Fork 0
28 lines (28 loc) · 853 Bytes
/
Copy pathjava-debug.yml
File metadata and controls
28 lines (28 loc) · 853 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
on: workflow_dispatch
name: JavaDebug
concurrency:
group: "Debug"
jobs:
build:
name: Run Debug Commands
runs-on: ubuntu-latest
steps:
- name: executing remote ssh commands using password
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.HOSTINGER_SSH_HOST }}
username: ${{ secrets.HOSTINGER_SSH_USER }}
password: ${{ secrets.HOSTINGER_SSH_PASSWORD }}
port: ${{ secrets.HOSTINGER_SSH_PORT }}
script: |
CONTAINER_ID=$(docker ps -q)
docker exec -i $CONTAINER_ID bash -c '
for pid in /proc/[0-9]*; do
if grep -q "java" "$pid/comm" 2>/dev/null; then
echo "${pid##*/}"
export JAVA_PID="${pid##*/}"
fi
done
echo $JAVA_PID
jhsdb jmap --pid $JAVA_PID
'