Skip to content

Commit 7bc3f1e

Browse files
committed
[#121]: Use Github's debug variable to override input_verbose
1 parent 937a5ac commit 7bc3f1e

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

.github/workflows/linter.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,9 @@ jobs:
1414
- uses: actions/checkout@v3
1515

1616
- name: CodeQuality
17-
uses: JacobDomagala/StaticAnalysis@master
17+
uses: JacobDomagala/StaticAnalysis@121-runpy-potential-for-unpredictable-behavior
1818
with:
1919
language: "Python"
20-
verbose: True
2120
pylint_args: "--rcfile=.pylintrc --recursive=true"
2221
python_dirs: "src test"
2322
exclude_dir: "test/utils/"

entrypoint.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,11 @@ debug_print() {
1111
fi
1212
}
1313

14+
if [ "$RUNNER_DEBUG" = "1" ]; then
15+
export INPUT_VERBOSE="true"
16+
debug_print "Runner is running in debug mode - enabling verbose output"
17+
fi
18+
1419
print_to_console=${INPUT_FORCE_CONSOLE_PRINT}
1520
check_cpp=$( [ "${INPUT_LANGUAGE,,}" = "c++" ] && echo "true" || echo "false" )
1621
check_python=$( [ "${INPUT_LANGUAGE,,}" = "python" ] && echo "true" || echo "false" )

0 commit comments

Comments
 (0)