Disable commit action when there are no commits.

#2314 
@dinhviethoa PTAL thanks