update action: --if-invalid option added