diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 16012187..b89b1eab 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -20,7 +20,7 @@ jobs: pip install pylint git fetch origin ${CI_MERGE_REQUEST_TARGET_BRANCH_NAME} echo CI_COMMIT_SHA=${GITHUB_SHA} - tmp_files=$(git diff --name-only main ${CI_COMMIT_SHA}) + tmp_files=$(git diff --name-only origin/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")