This commit is contained in:
John Doe
2022-10-02 19:30:20 +08:00
parent c44ed3bd20
commit 922b54f4b8
2 changed files with 25 additions and 0 deletions

View File

@@ -3,9 +3,21 @@ on:
workflow_dispatch: workflow_dispatch:
inputs: inputs:
package_clean: package_clean:
type: choice
description: 'check to make clean package' description: 'check to make clean package'
options:
- true
- false
default: 'false' default: 'false'
required: true required: true
debug:
type: choice
description: 'debug?'
options:
- true
- false
default: 'true'
required: true
jobs: jobs:
build: build:

View File

@@ -94,6 +94,19 @@ jobs:
make defconfig && sed -i -E 's/# (CONFIG_.*_COMPRESS_UPX) is not set/\1=y/' .config && make defconfig make defconfig && sed -i -E 's/# (CONFIG_.*_COMPRESS_UPX) is not set/\1=y/' .config && make defconfig
cat .config 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 - name: Clean build cache
if: ${{ github.event.client_payload.package_clean == 'true' || github.event.inputs.device != '' }} if: ${{ github.event.client_payload.package_clean == 'true' || github.event.inputs.device != '' }}
run: | run: |