-
Notifications
You must be signed in to change notification settings - Fork 2
43 lines (35 loc) · 1.1 KB
/
Copy pathupdate-publications.yml
File metadata and controls
43 lines (35 loc) · 1.1 KB
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
name: Update publications
on:
schedule:
# Mondays at 04:00 UTC. GitHub may delay scheduled runs under load.
- cron: "0 4 * * 1"
workflow_dispatch:
permissions:
contents: write
concurrency:
group: update-publications
cancel-in-progress: false
jobs:
update:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
with:
python-version: "3.12"
# Needed to read back the manual edits already in _data/publications.yml.
- name: Install dependencies
run: pip install pyyaml
- name: Fetch publications from DBLP
run: python3 scripts/fetch_publications.py
- name: Commit if the list changed
run: |
if git diff --quiet -- _data/publications.yml; then
echo "No new publications."
exit 0
fi
git config user.name "github-actions[bot]"
git config user.email "41898282+github-actions[bot]@users.noreply.github.com"
git add _data/publications.yml
git commit -m "Update publications from DBLP"
git push