Skip to content

Commit 887ad6c

Browse files
committed
Sync test
1 parent 77a6d4b commit 887ad6c

File tree

1 file changed

+31
-0
lines changed

1 file changed

+31
-0
lines changed

.github/workflows/sync-oura-data.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
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+
deploy:
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

0 commit comments

Comments
 (0)