From e662654c49d320e43baefa845e640f86d696d91e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sebasti=C3=A1n=20Ram=C3=ADrez?= Date: Fri, 7 May 2021 14:04:54 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=94=8A=20Update=20FastAPI=20People=20to?= =?UTF-8?q?=20allow=20better=20debugging=20(#3188)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/people.yml | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.github/workflows/people.yml b/.github/workflows/people.yml index 0d226a745..970813da7 100644 --- a/.github/workflows/people.yml +++ b/.github/workflows/people.yml @@ -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 }}