-
Notifications
You must be signed in to change notification settings - Fork 80
73 lines (71 loc) · 2.72 KB
/
refresh-journal-lists.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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
name: Refresh Journal Lists
on:
push:
branches:
- update-workflow
schedule:
# Run on the first of each month at 9:00 AM (See https://pubs.opengroup.org/onlinepubs/9699919799/utilities/crontab.html#tag_20_25_07)
- cron: "0 9 1 * *"
workflow_dispatch:
jobs:
update-aea:
name: Update AEA
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: gautamkrishnar/keepalive-workflow@v2
- uses: actions/setup-python@v5
- run: wget https://raw.github.com/jrnold/jabref-econ-journal-abbrevs/master/aea-abbrevs.txt -O journals/journal_abbreviations_aea.txt
- run: pip install pandas
- run: python scripts/convert_txt2csv.py
- run: rm journals/journal_abbreviations_aea.txt
- uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update-aea
title: "[Bot] Update AEA Journal abbreviation list"
commit-message: "Update AEA journal abbreviation list"
update-astronomy:
name: Update Astronomy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- run: wget https://raw.githubusercontent.com/timstaley/jabref-astro-abbreviations/master/MNRAS_abbreviations.txt -O journals/journal_abbreviations_astronomy.txt
- run: pip install pandas
- run: python scripts/convert_txt2csv.py
- run: rm journals/journal_abbreviations_astronomy.txt
- uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update-astronomy
title: "[Bot] Update Astronomy Journal abbreviation list"
commit-message: "Update Astronomy journal abbreviation list"
update-mathscinet:
name: Update MathSciNet
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- run: pip install pandas
- run: python scripts/update_mathscinet.py
- uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update-mathscinet
title: "[Bot] Update MathSciNet Journal abbreviation list"
commit-message: "Update MathSciNet journal abbreviation list"
update-ubc:
name: Update UBC
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-python@v5
- run: pip install beautifulsoup4 requests
- run: python scripts/update_ubc.py
- uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: update-ubc
title: "[Bot] Update UBC Journal abbreviation list"
commit-message: "Update UBC journal abbreviation list"