Skip to content

Commit

Permalink
Update pylint.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
christianvluu authored Nov 19, 2023
1 parent 5bc7172 commit 089ca99
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,8 @@ jobs:
python -m pip install --upgrade pip
pip install pylint
git fetch origin ${CI_MERGE_REQUEST_TARGET_BRANCH_NAME}
tmp_files=$(git diff --name-only main .)
echo CI_COMMIT_SHA=${GITHUB_SHA}
tmp_files=$(git diff --name-only main ${CI_COMMIT_SHA})
echo "Changed files are $tmp_files"
if [ -z "$(echo "$tmp_files" | grep "\.py")" ]; then exit 0; else echo "Python files are found"; fi
tmp_pfiles=$(echo "$tmp_files" | grep "\.py")
Expand Down

0 comments on commit 089ca99

Please sign in to comment.