Skip to content

hackernews-daily-top #1410

hackernews-daily-top

hackernews-daily-top #1410

Workflow file for this run

name: hackernews-daily-top
on:
schedule:
- cron: "1 0 * * *"
jobs:
fetch-top-posts:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js
uses: actions/setup-node@v1
with:
node-version: 12.x
- name: npm install
run: npm install --only=prod
working-directory: .
- name: fetch
run: node index.js
working-directory: .
# for github app auth
env:
clientSecret: ${{ secrets.clientSecret }}
privateKey: ${{ secrets.privateKey }}