forked from JabRef/jabref
-
Notifications
You must be signed in to change notification settings - Fork 0
44 lines (42 loc) · 1.38 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
name: Refresh Journal Lists
on:
schedule:
- cron: '1 2 2,16 * *'
workflow_dispatch:
jobs:
publish:
name: Refresh Journal List Files
runs-on: ubuntu-latest
if: (github.repository == 'JabRef/jabref')
steps:
- uses: actions/checkout@v4
with:
persist-credentials: true
fetch-depth: 0
submodules: 'true'
show-progress: 'false'
- name: Initialize git
run: |
git config --local core.editor /usr/bin/cat
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: Update buildres/abbrv.jabref.org
run: |
cd buildres/abbrv.jabref.org
git checkout main
git pull
- name: Set up JDK
uses: actions/setup-java@v3
with:
java-version: 21.0.1
distribution: 'liberica'
cache: 'gradle'
- name: Check whether journal-list.mv can be generated (the "real" generation is done inside JabRef's build process)
run: |
./gradlew generateJournalListMV
- uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GH_TOKEN_UPDATE_GRADLE_WRAPPER }}
branch: update-journal-lists
title: "[Bot] Update journal abbreviation lists"
commit-message: Update journal abbreviation lists