Don't hard-code git hash size

Signed-off-by: Sven Strickroth <email@cs-ware.de>
Checkout add post action commit

Signed-off-by: Sup Yut Sum <ch3cooli@gmail.com>