The Northern Ireland secretary announced his intentions on the social media platform X, formerly Twitter.