-
-
Notifications
You must be signed in to change notification settings - Fork 2.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/master' into writebackupToTemp
* upstream/master: Squashed 'src/main/resources/csl-styles/' changes from a8dafef..fad76fe Update journalList.mv Update journalList.mv Fix github-push-action Revert "Try to refresh on master push" Try to refresh on master push Refresh journal lists periodically (#5749) Cancel Previous Workflow Runs (#6826)
- Loading branch information
Showing
10 changed files
with
87 additions
and
15,233 deletions.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -40,6 +40,10 @@ jobs: | |
runs-on: ${{ matrix.os }} | ||
name: Create installer and portable version for ${{ matrix.displayName }} | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- name: Fetch all history for all tags and branches | ||
uses: actions/checkout@v2 | ||
with: | ||
|
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,59 @@ | ||
name: Refresh Journal Lists | ||
|
||
on: | ||
schedule: | ||
# run on 1st and 15th of each month | ||
- cron: '2 20 1,15 * *' | ||
workflow_dispatch: | ||
# Allow to run manually | ||
|
||
jobs: | ||
publish: | ||
name: Refresh Journal List Files | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Fetch all history for all tags and branches | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: master | ||
persist-credentials: false | ||
fetch-depth: 0 | ||
- name: Set up JDK | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 14 | ||
- uses: actions/cache@v1 | ||
name: Restore gradle wrapper | ||
with: | ||
path: ~/.gradle/wrapper | ||
key: ${{ runner.os }}-gradle-${{ hashFiles('gradle/wrapper/gradle-wrapper.properties') }} | ||
- name: Update journal lists | ||
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 abbrevatiation lists containing dots in them only (to be consistent) | ||
rm journal_abbreviations_entrez.csv | ||
rm journal_abbreviations_medicus.csv | ||
rm journal_abbreviations_webofscience-dots.csv | ||
# prepare building | ||
mkdir -p $GITHUB_WORKSPACE/build/journals | ||
cp * $GITHUB_WORKSPACE/build/journals/ | ||
# create .mv file | ||
cd $GITHUB_WORKSPACE | ||
./gradlew generateJournalAbbreviationList | ||
# git commit | ||
git config user.email "[email protected]" | ||
git config user.name "JabRef refresh journal lists [bot]" | ||
git add . && git commit -m"Update journalList.mv" | ||
- uses: ad-m/github-push-action@master | ||
with: | ||
github_token: ${{ secrets.GITHUB_TOKEN }} |
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 |
---|---|---|
|
@@ -17,6 +17,10 @@ jobs: | |
name: Checkstyle | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Cancel Previous Runs | ||
uses: styfle/[email protected] | ||
with: | ||
access_token: ${{ github.token }} | ||
- name: Checkout source | ||
uses: actions/checkout@v2 | ||
- name: Set up JDK | ||
|
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
Oops, something went wrong.