From 7f945c4d5fd82403c8da9130a9783f4b041463c6 Mon Sep 17 00:00:00 2001 From: Nikhil Badyal Date: Sun, 25 Dec 2022 20:12:13 +0530 Subject: [PATCH] =?UTF-8?q?=F0=9F=91=B7=20Added=20Tmate=20Debug=20session?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/build-apk.yml | 6 ++++++ .github/workflows/build-artifact.yml | 9 +++++++++ 2 files changed, 15 insertions(+) diff --git a/.github/workflows/build-apk.yml b/.github/workflows/build-apk.yml index a4ebfbe..5effabc 100644 --- a/.github/workflows/build-apk.yml +++ b/.github/workflows/build-apk.yml @@ -36,6 +36,11 @@ on: type: boolean required: false default: true + DEBUG_ENABLED: + type: boolean + description: 'Run the build with tmate debugging enabled.' + required: false + default: false concurrency: group: ${{ github.head_ref || github.run_id }} @@ -45,6 +50,7 @@ jobs: uses: ./.github/workflows/build-artifact.yml with: COMMIT_CHANGELOG: ${{ inputs.COMMIT_CHANGELOG }} + DEBUG_ENABLED: ${{ inputs.DEBUG_ENABLED }} secrets: ENVS: ${{ secrets.ENVS }} diff --git a/.github/workflows/build-artifact.yml b/.github/workflows/build-artifact.yml index 9b252f9..a8a1ecc 100644 --- a/.github/workflows/build-artifact.yml +++ b/.github/workflows/build-artifact.yml @@ -22,6 +22,11 @@ on: type: boolean required: false default: false + DEBUG_ENABLED: + type: boolean + description: 'Run the build with tmate debugging enabled.' + required: false + default: false jobs: build-apk: @@ -37,6 +42,10 @@ jobs: run: | echo "${{ secrets.ENVS }}" >> .env + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 + if: ${{ github.event_name == 'workflow_dispatch' && inputs.DEBUG_ENABLED }} + - name: Build Revanced APKs run: | docker-compose up