summaryrefslogtreecommitdiff
path: root/.github/workflows/daily_papers.yml
blob: 94b93d2fab43600cdca97f0de947867681b660bd (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
name: Daily Paper Fetch

on:
  schedule:
    - cron: '0 12 * * *'  # 每天UTC 12:00 触发
  workflow_dispatch:       # 支持手动触发

jobs:
  fetch-and-update-readme:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@v4

    - name: Set up Python
      uses: actions/setup-python@v5
      with:
        python-version: 3.10

    - name: Install dependencies
      run: |
        pip install requests sentence-transformers feedparser PyGithub

    - name: Run script
      env:
        TARGET_REPO_TOKEN: ${{ secrets.TARGET_REPO_TOKEN }}  # 
        TARGET_REPO_NAME: "YurenHao0426/llm-bias-papers"     # 
      run: python scripts/fetch_papers.py