ci: Add --fail-diff option and fix a bug

Signed-off-by: Hao Liu <hliu@redhat.com>