I built this simply n8n workflow mainly for myself, it lets me automatically cross-post my (or any other user) new posts from Hacker News to my (or any other) Mastodon instance (using the title from Hacker News + the URL).

Every 10 minutes the workflow checks a Hacker News user feed and, when it finds a new post, it publishes the latest one on Mastodon, making sure it is published only once.
The variables must be configured inside the workflow (see the note). You have to set the Hacker News username, the Mastodon instance you want to use and the access token. Here’s a preview of the result:

I uploaded the workflow here: Cross-post from Hacker News to Mastodon.json
P.S. my Hacker News account: giuliomagnifico and Mastodon: @[email protected]