forked from ravgeetdhillon/notion-feeder
-
Notifications
You must be signed in to change notification settings - Fork 0
25 lines (22 loc) · 682 Bytes
/
main.yml
File metadata and controls
25 lines (22 loc) · 682 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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