Browse Source

chore: run tmate if debug logging enabled

Shelley Vohr 1 year ago
parent
commit
eb6423a713
1 changed files with 2 additions and 9 deletions
  1. 2 9
      .github/workflows/mac-build.yml

+ 2 - 9
.github/workflows/mac-build.yml

@@ -4,13 +4,6 @@ on:
   push:
     branches:
       - gh-mac-runner
-  workflow_dispatch:
-    inputs:
-      debug_enabled:
-        type: boolean
-        description: 'Run the build with tmate debugging enabled'
-        required: false
-        default: false
 
 env:
   GCLIENT_EXTRA_ARGS: '--custom-var=checkout_mac=True --custom-var=host_os=mac --custom-var=host_cpu=arm64'
@@ -30,7 +23,7 @@ jobs:
       with:
         path: src/electron
     - name: Enable ssh Debugging
-      if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
+      if: runner.debug == 1
       uses: mxschmitt/action-tmate@v3
       with:
         detached: true
@@ -161,7 +154,7 @@ jobs:
         cache: yarn
         cache-dependency-path: src/electron/yarn.lock
     - name: Enable ssh Debugging
-      if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }}
+      if: runner.debug == 1
       uses: mxschmitt/action-tmate@v3
       with:
         detached: true