Skip to content

Get Feed

Get Feed #46

Workflow file for this run

name: Get Feed
on:
schedule:
- cron: '30 3 * * *' # 3:30pm IST -> 6:00am EST
workflow_dispatch:
jobs:
get-feed:
runs-on: ubuntu-latest
env:
NOTION_API_TOKEN: ${{ secrets.NOTION_API_TOKEN }}
NOTION_READER_DATABASE_ID: ${{ secrets.NOTION_READER_DATABASE_ID }}
NOTION_FEEDS_DATABASE_ID: ${{ secrets.NOTION_FEEDS_DATABASE_ID }}
RUN_FREQUENCY: 21600 # 6 hours in seconds
steps:
- name: Setup Node
uses: actions/setup-node@v2
with:
node-version: 14
- name: Update Notion Feed
run: |
curl -o index.js https://raw.githubusercontent.com/ravgeetdhillon/notion-feeder/build/dist/index.js
node index.js