Update RSS Feed to Notion #12568
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Update RSS Feed to Notion | |
on: | |
schedule: | |
- cron: '*/15 * * * *' # 每小时运行一次 | |
workflow_dispatch: # 手动触发 | |
jobs: | |
update-rss: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout repository | |
uses: actions/checkout@v4 | |
- name: Set up Python | |
uses: actions/setup-python@v5 | |
with: | |
python-version: '3.x' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
pip install feedparser requests beautifulsoup4 python-dateutil lxml | |
- name: Run script | |
env: | |
NOTION_API_KEY: ${{ secrets.NOTION_API_KEY }} | |
NOTION_READING_DATABASE_ID: ${{ secrets.NOTION_READING_DATABASE_ID }} | |
NOTION_URL_DATABASE_ID: ${{ secrets.NOTION_URL_DATABASE_ID }} | |
run: | | |
python Notion_Update_v4.0.py |