-
Notifications
You must be signed in to change notification settings - Fork 1
52 lines (50 loc) · 1.54 KB
/
arxiv-daily.yml
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
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
name: 'arxiv-daily'
on:
workflow_dispatch:
schedule:
- cron: '0 4 * * *'
jobs:
arxiv-digest:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- uses: actions/checkout@v3
- name: set up python
uses: actions/setup-python@v2
with:
python-version: '3.10'
- name: install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: run crawler
env:
ENDPOINT: ${{ secrets.ENDPOINT }}
KEY_ID: ${{ secrets.KEY_ID }}
APPLICATION_KEY: ${{ secrets.APPLICATION_KEY }}
BUCKET_NAME: ${{ secrets.BUCKET_NAME }}
TZ: 'America/New_York'
run: |
python scripts/crawl.py
- name: tldr digestion and make summary
env:
ENDPOINT: ${{ secrets.ENDPOINT }}
KEY_ID: ${{ secrets.KEY_ID }}
APPLICATION_KEY: ${{ secrets.APPLICATION_KEY }}
BUCKET_NAME: ${{ secrets.BUCKET_NAME }}
OPENAI_API_KEY: ${{ secrets.OPENAI_API_KEY }}
OPENAI_API_BASE: ${{ secrets.OPENAI_API_BASE }}
LLM_MODEL: ${{ secrets.LLM_MODEL }}
TZ: 'America/New_York'
run: |
python scripts/digest_tldr.py
- name: make markdown summary
run: |
python scripts/make_summary.py
- name: create issue
uses: JasonEtco/create-an-issue@v2
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TZ: 'America/New_York'
with:
filename: data/latest.md