-
Notifications
You must be signed in to change notification settings - Fork 3
36 lines (29 loc) · 877 Bytes
/
bot.yml
File metadata and controls
36 lines (29 loc) · 877 Bytes
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
name: "Update Papers List"
on:
schedule:
- cron: "0 0 * * *"
workflow_dispatch:
jobs:
cronJob:
name: "Update Papers JSON"
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-node@v4
with:
node-version: 18.x
cache: "npm"
cache-dependency-path: parser/package-lock.json
- run: git pull
# Only run `npm ci` if lockfile or package.json changed
- run: npm ci --prefix parser
- run: node parser/arxiv.js
- run: node parser/readme.js
- run: |
git config user.name "github-actions[bot]"
git config user.email "github-actions[bot]@users.noreply.github.com"
git add -f 'readme.md'
git commit -m "🤖 Auto Update for $(date +'%Y-%m-%d')"
git push --force