Skip to content

Commit

Permalink
add tmate option
Browse files Browse the repository at this point in the history
  • Loading branch information
mifi committed Sep 1, 2024
1 parent 43cb100 commit 94176eb
Showing 1 changed file with 13 additions and 2 deletions.
15 changes: 13 additions & 2 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,12 @@ on:
schedule:
- cron: '0 10 * * *'
workflow_dispatch:

inputs:
tmate_enabled:
type: boolean
description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
required: false
default: false

jobs:
release:
Expand All @@ -24,7 +29,13 @@ jobs:
# os: [windows-latest]

steps:
# Windows fix. See https://github.com/actions/checkout/issues/226
- name: Setup tmate session
uses: mxschmitt/action-tmate@v3
if: ${{ github.event_name == 'workflow_dispatch' && inputs.tmate_enabled }}
with:
detached: true

# Windows fix. See https://github.com/actions/checkout/issues/226
- run: git config --global core.autocrlf false

- name: Check out Git repository
Expand Down

0 comments on commit 94176eb

Please sign in to comment.