👷 Added Tmate Debug session

This commit is contained in:
Nikhil Badyal
2022-12-25 20:12:13 +05:30
parent cf4bfe6353
commit 7f945c4d5f
2 changed files with 15 additions and 0 deletions
+6
View File
@@ -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 }}
+9
View File
@@ -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