-
Notifications
You must be signed in to change notification settings - Fork 47
46 lines (39 loc) · 1005 Bytes
/
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
name: Run Daily Arxiv
on:
workflow_dispatch:
schedule:
- cron: "00 12 * * *"
push:
branches:
- main
env:
GITHUB_NAME: zhuwenxing
GITHUB_EMAIL: wenxing.zhu@qq.com
jobs:
sync:
name: update
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3.0.2
- name: Set up Python
uses: actions/setup-python@v1
with:
python-version: 3.8
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install arxivscraper
pip install requests
- name: Run daily arxiv
run: |
python daily_arxiv.py
- name: Push new daily.md
uses: github-actions-x/commit@v2.9
with:
github-token: ${{ secrets.G_T }}
commit-message: "update today arxiv"
files: README.md daily.json
rebase: 'true'
name: ${{ env.GITHUB_NAME }}
email: ${{ env.GITHUB_EMAIL }}