https://github.com/meysam81/submit-hackernews
Submit links to HackerNews in a Docker container image
https://github.com/meysam81/submit-hackernews
container docker hacker-news hackernews hackernews-api hackernews-client hackernewsapi job scheduled-jobs scheduled-submission scheduled-tasks ycombinator ycombinator-hacker-news
Last synced: 8 months ago
JSON representation
Submit links to HackerNews in a Docker container image
- Host: GitHub
- URL: https://github.com/meysam81/submit-hackernews
- Owner: meysam81
- License: apache-2.0
- Created: 2024-07-05T02:52:22.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-03-24T17:50:01.000Z (8 months ago)
- Last Synced: 2025-04-05T11:36:06.460Z (8 months ago)
- Topics: container, docker, hacker-news, hackernews, hackernews-api, hackernews-client, hackernewsapi, job, scheduled-jobs, scheduled-submission, scheduled-tasks, ycombinator, ycombinator-hacker-news
- Language: Shell
- Homepage:
- Size: 116 KB
- Stars: 2
- Watchers: 1
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- License: LICENSE
- Codeowners: .github/CODEOWNERS
Awesome Lists containing this project
README
# Submit HackerNews
[](https://github.com/meysam81/submit-hackernews)
[](https://github.com/meysam81/submit-hackernews/commits/main/)
[](https://github.com/meysam81/submit-hackernews)
[](https://results.pre-commit.ci/latest/github/meysam81/submit-hackernews/main)
[](https://github.com/users/meysam81/packages/container/package/submit-hackernews)
[](https://github.com/users/meysam81/packages/container/package/submit-hackernews)
- [Submit HackerNews](#submit-hackernews)
- [Introduction](#introduction)
- [Usage: GitHub Actions](#usage-github-actions)
- [Star History](#star-history)
## Introduction
This small Shell script will submit links to HackerNews. It is hugely
beneficial to automate the task of submission at desired schedules.
To run the script, run the following command:
```bash
docker run \
--name submit-hackernews \
--rm \
-e "HACKERNEWS_USERNAME=your_username" \
-e "HACKERNEWS_PASSWORD=your_password" \
ghcr.io/meysam81/submit-hackernews:v1 \
-t "This is the title of submission" \
-u "https://example.com"
```
## Usage: GitHub Actions
You can run this in a GitHub Actions workflow. Here is an example:
```yaml
name: ci
on:
workflow_dispatch:
inputs:
title:
description: The title of the link to submit.
required: true
url:
description: The URL of the link to submit.
required: true
verbose:
type: boolean
description: Verbose?
default: true
jobs:
submit-hackernews:
if: github.event_name == 'workflow_dispatch'
runs-on: ubuntu-latest
steps:
- name: Submit link to Hacker News
uses: meysam81/submit-hackernews@v1
with:
username: ${{ secrets.HACKERNEWS_USERNAME }}
password: ${{ secrets.HACKERNEWS_PASSWORD }}
title: ${{ github.event.inputs.title }}
url: ${{ github.event.inputs.url }}
verbose: ${{ github.event.inputs.verbose }}
```
## Star History