Refresh Citation Style Language Files #31
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
name: Refresh Citation Style Language Files | |
on: | |
schedule: | |
- cron: '1 2 1,15 * *' | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
publish: | |
name: Refresh Citation Style Language 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 | |
if: (github.repository == 'JabRef/jabref' || github.repository == 'koppor/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/csl/csl-styles | |
run: | | |
cd buildres/csl/csl-styles | |
git checkout master | |
git pull | |
cd .. | |
cd .. | |
cd .. | |
cp buildres/csl/csl-styles/acm-siggraph.csl src/main/resources/csl-styles/ | |
cp buildres/csl/csl-styles/apa.csl src/main/resources/csl-styles/ | |
cp buildres/csl/csl-styles/ieee.csl src/main/resources/csl-styles/ | |
cp buildres/csl/csl-styles/turabian-author-date.csl src/main/resources/csl-styles/ | |
- name: Update buildres/csl/csl-locales | |
run: | | |
cd buildres/csl/csl-locales | |
git checkout master | |
git pull | |
cd .. | |
cd .. | |
cd .. | |
cp buildres/csl/csl-locales/locales.json src/main/resources/csl-locales/ | |
cp buildres/csl/csl-locales/locales-en-US.xml src/main/resources/csl-locales/ | |
- uses: peter-evans/create-pull-request@v5 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
branch: refresh-csl | |
title: "[Bot] Update CSL styles" | |
commit-message: Update CSL styles | |
labels: dependencies |