Do not trigger build if no commits on push

Fix #335