From d3d9ec1624b953e36e0d249007176a7ed661b1ae Mon Sep 17 00:00:00 2001 From: adRn-s Date: Thu, 24 Oct 2024 12:23:35 +0200 Subject: [PATCH] enable debugging --- .github/workflows/django.yml | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/.github/workflows/django.yml b/.github/workflows/django.yml index 8c2f004cb..2d1945a00 100644 --- a/.github/workflows/django.yml +++ b/.github/workflows/django.yml @@ -2,6 +2,12 @@ name: Backend on: workflow_dispatch: + inputs: + debug_enabled: + type: boolean + description: 'Debug enabled (ssh -i )' + required: false + default: false push: branches: ['develop'] pull_request: @@ -55,7 +61,15 @@ jobs: steps: - uses: actions/checkout@v4 - + + - name: Setup debug session + uses: mxschmitt/action-tmate@v3 + #if: ${{ failure() }} + if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} + with: + detached: true + limit-access-to-actor: true + - name: Set up Python ${{ matrix.python-version }} uses: actions/setup-python@v5 with: