Skip to content

Commit 390a67a

Browse files
committed
change debug dispatch to checkbox
1 parent 30c4e3e commit 390a67a

File tree

3 files changed

+32
-14
lines changed

3 files changed

+32
-14
lines changed

.github/workflows/lint.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ on:
66
workflow_dispatch:
77
inputs:
88
debug:
9-
description: 'Set to on, to open ssh debug session.'
9+
description: 'Open ssh debug session.'
1010
required: true
11-
default: 'off'
11+
default: false
12+
type: boolean
1213

1314
jobs:
1415

@@ -60,11 +61,11 @@ jobs:
6061
poetry run pip install colorama
6162
poetry run pip install -U "django~=${{ matrix.django-version }}"
6263
- name: Install Emacs
63-
if: ${{ github.event.inputs.debug == 'on' }}
64+
if: ${{ github.event.inputs.debug == 'true' }}
6465
run: |
6566
sudo apt install emacs
6667
- name: Setup tmate session
67-
if: ${{ github.event.inputs.debug == 'on' }}
68+
if: ${{ github.event.inputs.debug == 'true' }}
6869
uses: mxschmitt/action-tmate@v3
6970
with:
7071
detached: true

.github/workflows/test.yml

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,10 @@ on:
66
workflow_dispatch:
77
inputs:
88
debug:
9-
description: 'Set to on, to open ssh debug session.'
9+
description: 'Open ssh debug session.'
1010
required: true
11-
default: 'off'
11+
default: false
12+
type: boolean
1213
schedule:
1314
- cron: '0 13 * * *' # Runs at 6 am pacific every day
1415

@@ -66,11 +67,11 @@ jobs:
6667
poetry install
6768
poetry run pip install -U "Django~=${{ matrix.django-version }}"
6869
- name: Install Emacs
69-
if: ${{ github.event.inputs.debug == 'on' }}
70+
if: ${{ github.event.inputs.debug == 'true' }}
7071
run: |
7172
sudo apt install emacs
7273
- name: Setup tmate session
73-
if: ${{ github.event.inputs.debug == 'on' }}
74+
if: ${{ github.event.inputs.debug == 'true' }}
7475
uses: mxschmitt/action-tmate@v3
7576
with:
7677
detached: true
@@ -128,11 +129,11 @@ jobs:
128129
sudo apt-get update
129130
sudo apt-get install -y fish
130131
- name: Install Emacs
131-
if: ${{ github.event.inputs.debug == 'on' }}
132+
if: ${{ github.event.inputs.debug == 'true' }}
132133
run: |
133134
sudo apt install emacs
134135
- name: Setup tmate session
135-
if: ${{ github.event.inputs.debug == 'on' }}
136+
if: ${{ github.event.inputs.debug == 'true' }}
136137
uses: mxschmitt/action-tmate@v3
137138
with:
138139
detached: true
@@ -199,7 +200,7 @@ jobs:
199200
# brew install sbt
200201
# brew install fish
201202
- name: Install Emacs
202-
if: ${{ github.event.inputs.debug == 'on' }}
203+
if: ${{ github.event.inputs.debug == 'true' }}
203204
run: |
204205
brew install emacs
205206
- name: Install Poetry
@@ -215,7 +216,7 @@ jobs:
215216
poetry install
216217
poetry run pip install -U "Django~=${{ matrix.django-version }}"
217218
- name: Setup tmate session
218-
if: ${{ github.event.inputs.debug == 'on' }}
219+
if: ${{ github.event.inputs.debug == 'true' }}
219220
uses: mxschmitt/action-tmate@v3
220221
with:
221222
detached: true
@@ -285,11 +286,11 @@ jobs:
285286

286287
steps:
287288
- name: Install Emacs
288-
if: ${{ github.event.inputs.debug == 'on' }}
289+
if: ${{ github.event.inputs.debug == 'true' }}
289290
run: |
290291
sudo apt install emacs
291292
- name: Setup tmate session
292-
if: ${{ github.event.inputs.debug == 'on' }}
293+
if: ${{ github.event.inputs.debug == 'true' }}
293294
uses: mxschmitt/action-tmate@v3
294295
with:
295296
detached: true

.github/workflows/update_coc.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,12 @@ on:
44
push:
55
pull_request:
66
workflow_dispatch:
7+
inputs:
8+
debug:
9+
description: 'Open ssh debug session.'
10+
required: true
11+
default: false
12+
type: boolean
713
# Run every Sunday at midnight UTC (00:00) - triggered by webhook?
814
schedule:
915
- cron: '0 0 * * 0'
@@ -18,6 +24,16 @@ jobs:
1824
runs-on: ubuntu-latest
1925

2026
steps:
27+
- name: Install Emacs
28+
if: ${{ github.event.inputs.debug == 'true' }}
29+
run: |
30+
sudo apt install emacs
31+
- name: Setup tmate session
32+
if: ${{ github.event.inputs.debug == 'true' }}
33+
uses: mxschmitt/action-tmate@v3
34+
with:
35+
detached: true
36+
timeout-minutes: 60
2137
- name: Checkout repository
2238
uses: actions/checkout@v4
2339

0 commit comments

Comments
 (0)