File tree Expand file tree Collapse file tree 2 files changed +33
-1
lines changed Expand file tree Collapse file tree 2 files changed +33
-1
lines changed Original file line number Diff line number Diff line change
1
+ name : Daily LeetCode to Notion Update
2
+
3
+ on :
4
+ schedule :
5
+ # Schedule to run at 00:00 UTC every day
6
+ - cron : " 0 0 * * *"
7
+
8
+ jobs :
9
+ update-notion :
10
+ runs-on : ubuntu-latest
11
+
12
+ steps :
13
+ # Checkout the repository
14
+ - name : Checkout Code
15
+ uses : actions/checkout@v3
16
+
17
+ # Set up Node.js
18
+ - name : Set up Node.js
19
+ uses : actions/setup-node@v3
20
+ with :
21
+ node-version : 16
22
+
23
+ # Install dependencies
24
+ - name : Install Dependencies
25
+ run : npm install
26
+
27
+ # Run the script
28
+ - name : Run Notion Update Script
29
+ run : node index.js
30
+ env :
31
+ LEETCODE_USERNAME : " msn2106"
32
+ NOTION_API_KEY : " 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"
33
+ NOTION_DATABASE_NAME : " LeetCode Problems"
Original file line number Diff line number Diff line change 1
1
{
2
2
"leetcodeUsername" : " msn2106" ,
3
3
"notionApiKey" : " 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" ,
4
- "notionParentPageId" : " your_notion_parent_page_id" ,
5
4
"NOTION_DATABASE_NAME" : " LeetCode Problems"
6
5
}
You can’t perform that action at this time.
0 commit comments