Skip to content

Commit

Permalink
ci(GITHUB): add tmate to pre-commit workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
niall-byrne committed Sep 14, 2024
1 parent a0f8f1e commit e9f8028
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/job-50-poetry-test_basic_precommit_hooks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,11 @@ on:
description: "The maximum allowable parallel executions."
required: true
type: number
DEBUG:
default: false
description: "Optional, allows you to troubleshoot failed workflow runs with tmate."
required: false
type: boolean
GIT_AUTHOR_NAME:
default: "Pro Buddy Dev"
description: "Optional, allows you to define the author name that git will assign to any generated commit."
Expand Down Expand Up @@ -165,6 +170,12 @@ jobs:
NOTIFICATION_MESSAGE: "Pre-commit Hook Test has passed!"
NOTIFICATION_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK }}

- name: Pre-Commit Test -- Troubleshoot on Failure
if: failure() && inputs.TESTING_MODE != true
uses: ./.cicd-tools/boxes/active/ci/github/actions/action-01-generic-debug
with:
ENABLE: ${{ inputs.DEBUG }}

- name: Pre-Commit Test -- Report Job Status on Failure
if: failure() || inputs.TESTING_MODE == true
uses: ./.cicd-tools/boxes/active/ci/github/actions/action-00-generic-notification
Expand Down

0 comments on commit e9f8028

Please sign in to comment.