Skip to content

Commit

Permalink
ci: add tmate for easier debug
Browse files Browse the repository at this point in the history
  • Loading branch information
billmetangmo committed Sep 20, 2024
1 parent df78632 commit 6d605a5
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/deploy_push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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:
Expand Down

0 comments on commit 6d605a5

Please sign in to comment.