Get Feed #40
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |