]> git.ipfire.org Git - thirdparty/fastapi/fastapi.git/commitdiff
🔊 Update FastAPI People to allow better debugging (#3188)
authorSebastián Ramírez <tiangolo@gmail.com>
Fri, 7 May 2021 12:04:54 +0000 (14:04 +0200)
committerGitHub <noreply@github.com>
Fri, 7 May 2021 12:04:54 +0000 (14:04 +0200)
.github/workflows/people.yml

index 0d226a745d031f9c97460c5b1d25fed6ca9bbd5c..970813da7b107ffc4376ef5333a6c86260076ba8 100644 (file)
@@ -4,12 +4,25 @@ on:
   schedule:
     - cron: "0 14 1 * *"
   workflow_dispatch:
+    inputs:
+      debug_enabled:
+        description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)'     
+        required: false
+        default: false
 
 jobs:
   fastapi-people:
     runs-on: ubuntu-latest
     steps:
       - uses: actions/checkout@v2
+      # Allow debugging with tmate
+      - name: Setup tmate session
+        uses: mxschmitt/action-tmate@v3
+        if: ${{ github.event_name == 'workflow_dispatch' && github.event.inputs.debug_enabled }}
+        with:
+          limit-access-to-actor: true
+          token: ${{ secrets.ACTIONS_TOKEN }}
+          standard_token: ${{ secrets.GITHUB_TOKEN }}
       - uses: ./.github/actions/people
         with:
           token: ${{ secrets.ACTIONS_TOKEN }}