From 5bc7172e625734f200591f5235096c04d4c6bb5a Mon Sep 17 00:00:00 2001 From: Christian Luu <35637788+christianvluu@users.noreply.github.com> Date: Sun, 19 Nov 2023 01:37:09 -0500 Subject: [PATCH] Update pylint.yml --- .github/workflows/pylint.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 87f509ae..d29ac2f4 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -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")