From 089ca993d6d6954944a14db9da33c476cd476a9c Mon Sep 17 00:00:00 2001 From: Christian Luu <35637788+christianvluu@users.noreply.github.com> Date: Sun, 19 Nov 2023 01:38:56 -0500 Subject: [PATCH] Update pylint.yml --- .github/workflows/pylint.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index d29ac2f4..16012187 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -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")