Get Feed #1167
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 12 * * *' # 6pm IST | |
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: 86400 # 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 |