blob: a21d4307ffc43990ecbe71e302fdcbbdccf0dcc1 (
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
28
29
|
name: Daily Paper Fetch
on:
schedule:
- cron: '0 12 * * *'
workflow_dispatch:
jobs:
fetch-job:
runs-on: ubuntu-latest
steps:
- name: Check out
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 feedparser PyGithub
- name: Run fetch script
env:
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
|