From be89bcfe65977e5e012359fa66d809a4cfd8cdc3 Mon Sep 17 00:00:00 2001 From: Christian Luu <35637788+christianvluu@users.noreply.github.com> Date: Sun, 19 Nov 2023 01:17:17 -0500 Subject: [PATCH] Update pylint.yml --- .github/workflows/pylint.yml | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index ba70b35f..706d7834 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -26,9 +26,11 @@ jobs: if [ -z "$(echo "$tmp_files" | grep "\.py")" ]; then exit 0; else echo "Python files are found"; fi tmp_pfiles=$(echo "$tmp_files" | grep "\.py") echo "Python files are $tmp_pfiles" - mkdir ./pylint - pylint --output-format=text $tmp_pfiles | tee ./pylint/pylint.log || pylint-exit $? - name: Analysing the code with pylint run: | cd rb_ws - pylint --rc-file=/home/runner/work/RoboBuggy2/RoboBuggy2/.github/workflows/.pylintrc $tmp_pfiles + if [[ -z $tmp_pfiles ]]; then + echo "No files to lint" + else + pylint --rc-file=/home/runner/work/RoboBuggy2/RoboBuggy2/.github/workflows/.pylintrc $tmp_pfiles + fi