Skip to content

Update RSS Feed to Notion #12558

Update RSS Feed to Notion

Update RSS Feed to Notion #12558

Workflow file for this run

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