add log and update commit action: add git add before git commit