diff --git a/.github/workflows/pylint.yml b/.github/workflows/pylint.yml index 706d7834..057eb079 100644 --- a/.github/workflows/pylint.yml +++ b/.github/workflows/pylint.yml @@ -18,8 +18,8 @@ jobs: run: | python -m pip install --upgrade pip pip install pylint - echo CI_COMMIT_SHA=${CI_COMMIT_SHA} - echo CI_MERGE_REQUEST_TARGET_BRANCH_NAME=${CI_MERGE_REQUEST_TARGET_BRANCH_NAME} + echo CI_COMMIT_SHA=${GITHUB_SHA} + echo CI_MERGE_REQUEST_TARGET_BRANCH_NAME=${GITHUB_BASE_REF} git fetch origin ${CI_MERGE_REQUEST_TARGET_BRANCH_NAME} tmp_files=$(git diff --name-only ${CI_COMMIT_SHA} ${CI_MERGE_REQUEST_TARGET_BRANCH_NAME}) echo "Changed files are $tmp_files"