-
-
Notifications
You must be signed in to change notification settings - Fork 2.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate journal-list.mv on build (#10298)
* Generate journal-list.mv on build * Squashed 'buildres/abbrv.jabref.org/' content from commit d47628aa8a git-subtree-dir: buildres/abbrv.jabref.org git-subtree-split: d47628aa8ae2d7d47d5b18a82982d2246996347c * Fix gradle dependencies * Convert buildres/abbrv.jabref.org to git submodule * Convert csl-styles from subtree to submodule * Enable testing at koppor's fork * Fix path of csl-styles and csl-locales * Try to fix branch in sub module * Fix branch name * Add "show-progress: 'false'" (and add some forgotten sub-module checkouts) * Fix path * Fix checkout of submodules * Speed up build * Fix task dependency * Fix dependencies (and exit code) * Fix tabs (by replacing to spaces) * Do not fail if input does not exist (JabRef can cope with that)
- Loading branch information
Showing
10,571 changed files
with
212 additions
and
1,014,295 deletions.
The diff you're trying to view is too large. We only load the first 3000 changed files.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,65 +1,50 @@ | ||
name: Refresh Journal Lists | ||
|
||
on: | ||
push: | ||
paths: | ||
- '.github/workflows/refresh-journal-lists.yml' | ||
- 'buildSrc/build.gradle' | ||
- 'buildSrc/src/main/java/**' | ||
- 'src/main/java/org/jabref/logic/journals/**' | ||
schedule: | ||
- cron: '1 2 2,16 * *' | ||
workflow_dispatch: | ||
|
||
permissions: | ||
contents: read | ||
|
||
jobs: | ||
publish: | ||
name: Refresh Journal List Files | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write # for peter-evans/create-pull-request to create branch | ||
pull-requests: write # for peter-evans/create-pull-request to create a PR | ||
name: Refresh Journal List Files | ||
runs-on: ubuntu-latest | ||
if: (github.repository == 'JabRef/jabref' || github.repository == 'koppor/jabref') | ||
steps: | ||
- uses: actions/checkout@v3 | ||
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: Update journal lists | ||
- name: Check whether journal-list.mv can be generated (the "real" generation is done inside JabRef's build process) | ||
run: | | ||
set +o pipefail | ||
# prepare journal lists | ||
cd /tmp | ||
git clone --depth=1 https://github.com/JabRef/abbrv.jabref.org.git | ||
cd abbrv.jabref.org/journals | ||
# remove all lists without dot in them | ||
# we use abbreviation lists containing dots in them only (to be consistent) | ||
rm journal_abbreviations_entrez.csv | ||
rm journal_abbreviations_medicus.csv | ||
rm journal_abbreviations_webofscience-dotless.csv | ||
# we currently do not have good support for BibTeX strings | ||
rm journal_abbreviations_ieee_strings.csv | ||
# prepare building | ||
mkdir -p $GITHUB_WORKSPACE/build/journals | ||
cp * $GITHUB_WORKSPACE/build/journals/ | ||
# ensure that the .java classes are the most recent ones | ||
cp $GITHUB_WORKSPACE/src/main/java/org/jabref/logic/journals/* $GITHUB_WORKSPACE/buildSrc/src/main/java/org/jabref/logic/journals | ||
# create .mv file | ||
cd $GITHUB_WORKSPACE | ||
./gradlew generateJournalAbbreviationList | ||
- uses: peter-evans/create-pull-request@v5 | ||
with: | ||
token: ${{ secrets.GITHUB_TOKEN }} | ||
branch: update-journallist | ||
branch: update-journal-lists | ||
title: "[Bot] Update journal abbreviation lists" | ||
commit-message: Update journal abbreviation lists |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
[submodule "buildres/abbrv.jabref.org"] | ||
path = buildres/abbrv.jabref.org | ||
url = https://github.com/JabRef/abbrv.jabref.org.git | ||
[submodule "buildres/csl-styles"] | ||
path = buildres/csl/csl-styles | ||
url = https://github.com/citation-style-language/styles.git | ||
[submodule "buildres/csl-locales"] | ||
path = buildres/csl/csl-locales | ||
url = https://github.com/citation-style-language/locales.git |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.