
项目地址: https://github.com/shaowenchen/debugger-action
打开方式:
需要一个 Frp Server 。在 workflows 中 添加一个 job
- uses: shaowenchen/debugger-action@v1 name: debugger timeout-minutes: 30 continue-on-error: true with: frp_server_addr: ${{ secrets.FRP_SERVER_ADDR }} frp_server_port: ${{ secrets.FRP_SERVER_PORT }} frp_token: ${{ secrets.FRP_TOKEN }} ssh_port: ${{ secrets.SSH_PORT }} 就可以远程了 ssh root@frp_server_addr -p ssh_port,密码:root
最长单次可达 6 小时的 Debug 时长,支持 Linux 、MacOs 系统。
详情参看项目地址或 https://www.chenshaowen.com/blog/a-debugger-for-actions.html
1 shaowenchen OP v2 版已经支持 Ngrok ```bash - uses: shaowenchen/debugger-action@v2 name: debugger timeout-minutes: 30 continue-on-error: true with: ngrok_token: ${{ secrets.NGROK_TOKEN }} ``` |