]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
👷 Update CI debug mode with Tmate (#9977)
authorSebastián Ramírez <tiangolo@gmail.com>
Mon, 31 Jul 2023 19:54:07 +0000 (21:54 +0200)
committerGitHub <noreply@github.com>
Mon, 31 Jul 2023 19:54:07 +0000 (21:54 +0200)
.github/workflows/latest-changes.yml
.github/workflows/notify-translations.yml
.github/workflows/people.yml

index 1f7ac7b28687d2ffbcc494226457c158a2f0243d..0461f3dd3eb9f7699b422db5a2f2d416c344e6b8 100644 (file)
@@ -14,7 +14,7 @@ on:
       debug_enabled:
         description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
         required: false
-        default: false
+        default: 'false'
 
 jobs:
   latest-changes:
@@ -22,12 +22,12 @@ jobs:
     steps:
       - uses: actions/checkout@v3
         with:
-          # To allow latest-changes to commit to master
+          # To allow latest-changes to commit to the main branch
           token: ${{ secrets.FASTAPI_LATEST_CHANGES }}
       # Allow debugging with tmate
       - name: Setup tmate session
         uses: mxschmitt/action-tmate@v3
-        if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
+        if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled == 'true' }}
         with:
           limit-access-to-actor: true
       - uses: docker://tiangolo/latest-changes:0.0.3
index 0926486e9b0db06e686d8ba260e6812a5f62a7b6..cd7affbc395f913692d2eddaf6071291ff3968e1 100644 (file)
@@ -5,6 +5,15 @@ on:
     types:
       - labeled
       - closed
+  workflow_dispatch:
+    inputs:
+      number:
+        description: PR number
+        required: true
+      debug_enabled:
+        description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
+        required: false
+        default: 'false'
 
 jobs:
   notify-translations:
@@ -14,7 +23,7 @@ jobs:
       # Allow debugging with tmate
       - name: Setup tmate session
         uses: mxschmitt/action-tmate@v3
-        if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
+        if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled == 'true' }}
         with:
           limit-access-to-actor: true
       - uses: ./.github/actions/notify-translations
index dac526a6c7f522c5f1b0a9a1ca8c242db39b7759..aa7f34464e2c965736bf1cbec01f16312d68ebee 100644 (file)
@@ -8,7 +8,7 @@ on:
       debug_enabled:
         description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'
         required: false
-        default: false
+        default: 'false'
 
 jobs:
   fastapi-people:
@@ -22,7 +22,7 @@ jobs:
       # Allow debugging with tmate
       - name: Setup tmate session
         uses: mxschmitt/action-tmate@v3
-        if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
+        if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled == 'true' }}
         with:
           limit-access-to-actor: true
       - uses: ./.github/actions/people