You're viewing an older version of this GitHub Action. Do you want to see the latest version instead?
GitHub Action
Post to Hackernews
v1.0.0
Unofficial A Github action to post to news.ycombinator.com
Using a headless browser (via puppeteer) and your hackernews login credentials, submit an article with title & url under your account.
As a reminder, read through HN's submission guidelines to confirm your integration adheres
Do not store your login credentials directly in your workflow file. Store them in an encrypted, secure manner.
EG: Github secrets: Settings > Secrets > Actions
Required The hackernews username you want to post as. Set this in your repository secrets
Required The password for the hackernews user. Set this in your repository secrets
The title as it will be displayed on news.ycombinator.com.
The URL to post to HN.
uses: higgins/[email protected]
with:
HN_USERNAME: ${{ secrets.HN_USERNAME }}
HN_PASSWORD: ${{ secrets.HN_PASSWORD }}
POST_TITLE: "An clock where every second is user submitted content"
POST_URL: https://24HourHomepage.com