Skip to content

hackernews-daily

hackernews-daily #699

Workflow file for this run

name: hackernews-daily
on:
workflow_dispatch:
schedule:
- cron: "0 6 * * *"
jobs:
fetch-top-posts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20
- name: npm install
run: npm install --only=prod
working-directory: .
- name: fetch
run: node index.js
working-directory: .
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}