summaryrefslogtreecommitdiff
path: root/.github/workflows/daily_papers.yml
diff options
context:
space:
mode:
authorblackhao <13851610112@163.com>2025-03-30 18:12:37 -0500
committerblackhao <13851610112@163.com>2025-03-30 18:12:37 -0500
commit25eeb436f1c5f409855022131ee1dc8700a698f3 (patch)
treeb649a3e4aa5d8cd514ba074e7c2952d8fb05c271 /.github/workflows/daily_papers.yml
parent150259fb5cd1c6c13802ccf74a758327c2101358 (diff)
api
Diffstat (limited to '.github/workflows/daily_papers.yml')
-rw-r--r--.github/workflows/daily_papers.yml18
1 files changed, 10 insertions, 8 deletions
diff --git a/.github/workflows/daily_papers.yml b/.github/workflows/daily_papers.yml
index b11867e..a21d430 100644
--- a/.github/workflows/daily_papers.yml
+++ b/.github/workflows/daily_papers.yml
@@ -6,10 +6,11 @@ on:
workflow_dispatch:
jobs:
- fetch-and-update-readme:
- runs-on: ubuntu-latest # 或 ubuntu-22.04
+ fetch-job:
+ runs-on: ubuntu-latest
steps:
- - uses: actions/checkout@v4
+ - name: Check out
+ uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
@@ -18,10 +19,11 @@ jobs:
- name: Install dependencies
run: |
- pip install requests sentence-transformers feedparser PyGithub
+ pip install requests feedparser PyGithub
- - name: Run script
+ - name: Run fetch script
env:
- TARGET_REPO_TOKEN: ${{ secrets.TARGET_REPO_TOKEN }}
- TARGET_REPO_NAME: "YurenHao0426/llm-bias-papers"
- run: python scripts/fetch_papers.py
+ TARGET_REPO_TOKEN: ${{ secrets.GITHUB_TOKEN }} # GitHub 的自动 token
+ TARGET_REPO_NAME: "YourName/TargetRepo"
+ UIUC_API_KEY: ${{ secrets.UIUC_API_KEY }} # 取出你的API密钥
+ run: python fetch_and_update_readme_api.py