scripts: Run checks only on staged files

Fixes: #935
7 jobs for main in 26 minutes and 35 seconds (queued for 2 seconds)