From 6d605a5ad67f1e77e7fa1fd88b28af7c4fad5605 Mon Sep 17 00:00:00 2001 From: billmetangmo <25366207+billmetangmo@users.noreply.github.com> Date: Fri, 20 Sep 2024 13:34:58 +0000 Subject: [PATCH] ci: add tmate for easier debug --- .github/workflows/deploy_push.yml | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/.github/workflows/deploy_push.yml b/.github/workflows/deploy_push.yml index 45db91a..64d3ae9 100644 --- a/.github/workflows/deploy_push.yml +++ b/.github/workflows/deploy_push.yml @@ -7,6 +7,13 @@ on: - 'html/**' - '.github/workflows/deploy_push.yml' - 'requirements.txt' + workflow_dispatch: + inputs: + debug_enabled: + type: boolean + description: 'Run the build with tmate debugging enabled (https://github.com/marketplace/actions/debugging-with-tmate)' + required: false + default: false jobs: deploy: runs-on: ubuntu-latest @@ -20,6 +27,10 @@ jobs: GITHUB_TOKEN: ${{ secrets.GH_TOKEN }} TFE_TOKEN: ${{ secrets.TFE_TOKEN }} steps: + - name: Setup tmate session + uses: mxschmitt/action-tmate@v3 + if: ${{ github.event_name == 'workflow_dispatch' && inputs.debug_enabled }} + - name: Configure AWS credentials uses: aws-actions/configure-aws-credentials@67fbcbb121271f7775d2e7715933280b06314838 # ratchet:aws-actions/configure-aws-credentials@v1 with: