From 922b54f4b8efcb0f98b6076b82e8aed449ed9131 Mon Sep 17 00:00:00 2001 From: John Doe Date: Sun, 2 Oct 2022 19:30:20 +0800 Subject: [PATCH] fix --- .github/workflows/dispatch.yml | 12 ++++++++++++ .github/workflows/lo-test.yml | 13 +++++++++++++ 2 files changed, 25 insertions(+) diff --git a/.github/workflows/dispatch.yml b/.github/workflows/dispatch.yml index 73a5bf4..7d0ba76 100644 --- a/.github/workflows/dispatch.yml +++ b/.github/workflows/dispatch.yml @@ -3,9 +3,21 @@ on: workflow_dispatch: inputs: package_clean: + type: choice description: 'check to make clean package' + options: + - true + - false default: 'false' required: true + debug: + type: choice + description: 'debug?' + options: + - true + - false + default: 'true' + required: true jobs: build: diff --git a/.github/workflows/lo-test.yml b/.github/workflows/lo-test.yml index ed376e6..63e86b8 100644 --- a/.github/workflows/lo-test.yml +++ b/.github/workflows/lo-test.yml @@ -94,6 +94,19 @@ jobs: make defconfig && sed -i -E 's/# (CONFIG_.*_COMPRESS_UPX) is not set/\1=y/' .config && make defconfig cat .config + - name: Debug via tmate + uses: klever1988/ssh2actions@main + if: ${{ github.event.client_payload.debug == 'true' }} + with: + mode: ssh + env: + TELEGRAM_BOT_TOKEN: ${{ secrets.TELEGRAM_BOT_TOKEN }} + TELEGRAM_CHAT_ID: ${{ secrets.TELEGRAM_CHAT_ID }} + SSH_PASSWORD: ${{secrets.SSH_PASSWORD}} + SSH_PUBKEY: ${{secrets.SSH_PUBKEY}} + NGROK_TOKEN: ${{secrets.TUNNEL_KEY}} + TUNNEL_HOST: ${{secrets.TUNNEL_HOST}} + - name: Clean build cache if: ${{ github.event.client_payload.package_clean == 'true' || github.event.inputs.device != '' }} run: |