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 85a621f commit 5bc7172
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions .github/workflows/pylint.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,8 @@ jobs:
run: |
python -m pip install --upgrade pip
pip install pylint
echo CI_COMMIT_SHA=${GITHUB_SHA}
echo CI_MERGE_REQUEST_TARGET_BRANCH_NAME="main"
git fetch origin ${CI_MERGE_REQUEST_TARGET_BRANCH_NAME}
tmp_files=$(git diff --name-only ${CI_COMMIT_SHA} ${CI_MERGE_REQUEST_TARGET_BRANCH_NAME})
tmp_files=$(git diff --name-only main .)
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 5bc7172

Please sign in to comment.