File tree 2 files changed +14
-2
lines changed
2 files changed +14
-2
lines changed Original file line number Diff line number Diff line change 28
28
29
29
# Allow manual triggering:
30
30
workflow_dispatch :
31
+ inputs :
32
+ debug :
33
+ description : ' Enable debug output'
34
+ required : false
35
+ default : ' false'
36
+ type : choice
37
+ options :
38
+ - ' true'
39
+ - ' false'
31
40
32
41
# Workflow jobs:
33
42
jobs :
61
70
. "$GITHUB_WORKSPACE/.github/workflows/scripts/check_tracking_issue_closure" 1
62
71
env :
63
72
GITHUB_TOKEN : ${{ secrets.STDLIB_BOT_PAT_REPO_WRITE }}
73
+ DEBUG : ${{ inputs.debug || 'false' }}
Original file line number Diff line number Diff line change 27
27
# Environment variables:
28
28
#
29
29
# GITHUB_TOKEN GitHub token for authentication.
30
+ # DEBUG Whether to enable verbose debug output. Default: `false`.
30
31
31
32
# shellcheck disable=SC2153
32
33
@@ -68,14 +69,15 @@ comment_identifier="<!-- stdlib-bot-tracking-issue-closure-check -->"
68
69
max_retries=3
69
70
retry_delay=2
70
71
71
- # Debug mode (set to true for verbose output )
72
- debug=true
72
+ # Debug mode controlled by environment variable (defaults to false if not set )
73
+ debug=" ${DEBUG :- false} "
73
74
74
75
75
76
# FUNCTIONS #
76
77
77
78
# Debug logging function
78
79
debug_log () {
80
+ # Only print debug messages if DEBUG environment variable is set to "true"
79
81
if [ " $debug " = true ]; then
80
82
echo " [DEBUG] $1 " >&2
81
83
fi
You can’t perform that action at this time.
0 commit comments