Skip to content

Commit

Permalink
enable debugging
Browse files Browse the repository at this point in the history
  • Loading branch information
adRn-s committed Oct 24, 2024
1 parent 787404f commit d3d9ec1
Showing 1 changed file with 15 additions and 1 deletion.
16 changes: 15 additions & 1 deletion .github/workflows/django.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,12 @@ name: Backend

on:
workflow_dispatch:
inputs:
debug_enabled:
type: boolean
description: 'Debug enabled (ssh -i <path-to-key> <tmate-connection-string>)'
required: false
default: false
push:
branches: ['develop']
pull_request:
Expand Down Expand Up @@ -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:
Expand Down

0 comments on commit d3d9ec1

Please sign in to comment.