I wanted to check for changed files between previous commit occurs and latest commit with
git diff ${CI_COMMIT_BEFORE_SHA} ${CI_COMMIT_SHA} --name-only