diff options
| author | blackhao <13851610112@163.com> | 2025-03-29 06:30:26 -0500 |
|---|---|---|
| committer | blackhao <13851610112@163.com> | 2025-03-29 06:30:26 -0500 |
| commit | c75c7d42be8aeb998b36f5e444e844b7242bbb90 (patch) | |
| tree | 9c06a5daefc9b793b346c09be4a8bcf1a3ad3264 /.github/workflows/daily_papers.yml | |
| parent | e87fbb1d701f96ee53a2a7e9e5cc5ca6624ff85f (diff) | |
first version for test
Diffstat (limited to '.github/workflows/daily_papers.yml')
| -rw-r--r-- | .github/workflows/daily_papers.yml | 27 |
1 files changed, 27 insertions, 0 deletions
diff --git a/.github/workflows/daily_papers.yml b/.github/workflows/daily_papers.yml index e69de29..d32db15 100644 --- a/.github/workflows/daily_papers.yml +++ b/.github/workflows/daily_papers.yml @@ -0,0 +1,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: "YourUsername/llm-bias-papers" # 后面我们会改成你的目标仓库名 + run: python scripts/fetch_papers.py |
