File tree Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Expand file tree Collapse file tree 1 file changed +31
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Sync Oura Data
2+ on :
3+ push :
4+ branches :
5+ - sync-oura-data
6+ schedule :
7+ # 06:00 UTC is 23:00 Pacific Time
8+ - cron : ' 0 6 * * *'
9+ jobs :
10+ sync :
11+ runs-on : ubuntu-latest
12+ steps :
13+ - uses : actions/checkout@v4
14+ - uses : actions/setup-node@v4
15+ with :
16+ node-version : lts/hydrogen
17+ - uses : actions/cache@v4
18+ with :
19+ path : ~/.npm
20+ key : ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
21+ restore-keys : |
22+ ${{ runner.os }}-node-
23+ - name : Install dependencies
24+ run : npm install
25+ - name : Sync Oura data to Notion
26+ env :
27+ NOTION_API_TOKEN : ${{ secrets.OURA_NOTION_API_TOKEN }}
28+ OURA_JOURNAL_DATABASE_ID : ${{ secrets.OURA_JOURNAL_DATABASE_ID }}
29+ OURA_RING_TOKEN : ${{ secrets.OURA_RING_TOKEN }}
30+ run : |
31+ node examples/oura/sync.js
You can’t perform that action at this time.
0 commit comments