From 94176eb53cbb738db2b4154d10fa529c61c2c701 Mon Sep 17 00:00:00 2001 From: Mikael Finstad Date: Sun, 1 Sep 2024 22:09:07 +0200 Subject: [PATCH] add tmate option --- .github/workflows/build.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index c6e4a4cf0d..ce2170711c 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -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: @@ -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