forked from JabRef/jabref
-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (38 loc) · 1.2 KB
/
refresh-csl-subtrees.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
name: Refresh Citation Style Language Files
on:
schedule:
- cron: '1 2 1,15 * *'
workflow_dispatch:
jobs:
publish:
name: Refresh Citation Style Language Files
runs-on: ubuntu-latest
if: (github.repository == 'JabRef/jabref')
steps:
- uses: actions/checkout@v4
with:
persist-credentials: true
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 src/main/resources/csl-styles
run: |
cd src/main/resources/csl-styles
git checkout master
git pull
- name: Update src/main/resources/csl-locales
run: |
cd src/main/resources/csl-locales
git checkout master
git pull
- uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GH_TOKEN_UPDATE_GRADLE_WRAPPER }}
branch: refresh-csl
title: "[Bot] Update CSL styles"
commit-message: Update CSL styles
labels: dependencies