Skip to content

Refresh Journal Lists #4

Refresh Journal Lists

Refresh Journal Lists #4

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: 20
distribution: 'temurin'
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