Skip to content

Post to Hackernews

Actions
Submit URL to https://news.ycombinator.com
v1.0.1
Latest
Star (3)

action-hackernews-post

Unofficial A Github action to post to news.ycombinator.com

Uses @lukakerr's hkn go module to login and post to HN

Guidelines

As a reminder, read through HN's submission guidelines to confirm your integration adheres

Inputs

Do not store your login credentials directly in your workflow file. Store them in an encrypted, secure manner.

EG: Github secrets: Settings > Secrets > Actions

HN_USERNAME

Required The hackernews username you want to post as. Set this in your repository secrets

HN_PASSWORD

Required The password for the hackernews user. Set this in your repository secrets

POST_TITLE

The title as it will be displayed on news.ycombinator.com.

POST_URL

The URL to post to HN.

Example usage, static file

uses: higgins/[email protected]
with:
  HN_USERNAME: ${{ secrets.HN_USERNAME }}
  HN_PASSWORD: ${{ secrets.HN_PASSWORD }}
  POST_TITLE: "A clock where every second is user submitted content"
  POST_URL: https://24HourHomepage.com

Post to Hackernews is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.

About

Submit URL to https://news.ycombinator.com
v1.0.1
Latest

Post to Hackernews is not certified by GitHub. It is provided by a third-party and is governed by separate terms of service, privacy policy, and support documentation.