Skip to content

Commit a64dc6b

Browse files
authored
Create update_notion.yml
1 parent 2ffd26e commit a64dc6b

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/update_notion.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: Update Notion with Series Data
2+
3+
on:
4+
push:
5+
branches:
6+
- main
7+
schedule:
8+
- cron: "0 * * * *"
9+
10+
jobs:
11+
update-notion:
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout code
16+
uses: actions/checkout@v2
17+
18+
- name: Set up Python
19+
uses: actions/setup-python@v2
20+
with:
21+
python-version: '3.8'
22+
23+
- name: Install dependencies
24+
run: |
25+
python -m pip install --upgrade pip
26+
pip install gspread requests notion-client
27+
28+
- name: Run script
29+
env:
30+
NOTION_API_KEY: ${{ secrets.NOTION_API_KEY }}
31+
TMDB_API_KEY: ${{ secrets.TMDB_API_KEY }}
32+
GOOGLE_SHEETS_JSON: ${{ secrets.GOOGLE_SHEETS_JSON }}
33+
SHEET_ID: ${{ secrets.SHEET_ID }}
34+
run: |
35+
python update_notion.py

0 commit comments

Comments
 (0)