Detecting changed files (since last build) in CI builds

That information should be available in Git. What exact command(s) and flags depend on what specific info you’d want. This should be a useful starting point: How to detect commited file at test phase