Update .gitignore and fix typo on action.register in core