Skip to content

Commit

Permalink
Merge pull request #10296 from JabRef/modernize-refresh-csl-subtree-a…
Browse files Browse the repository at this point in the history
…ction

Modernize GitHub workflow for refresh CSL
  • Loading branch information
Siedlerchr authored Sep 3, 2023
2 parents ce99912 + 4d01708 commit 07f54ed
Showing 1 changed file with 10 additions and 7 deletions.
17 changes: 10 additions & 7 deletions .github/workflows/refresh-csl-subtrees.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,19 +13,22 @@ jobs:
publish:
name: Refresh Citation Style Language Files
runs-on: ubuntu-latest
if: github.repository == 'JabRef/jabref'
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:
- name: Checkout source
uses: actions/checkout@v3
- uses: actions/checkout@v3
with:
persist-credentials: true
ref: main
fetch-depth: 0
- name: Initialize git
run: |
git checkout main
git config --local core.editor /usr/bin/cat
git config user.name "github actions"
git config user.email "jabrefmail+webfeedback@gmail.com"
git config user.name 'github-actions[bot]'
git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: Add csl-styles remote
run: git remote add -f csl-styles https://github.com/citation-style-language/styles.git
- name: Update csl-styles
Expand All @@ -48,8 +51,8 @@ jobs:
git commit -m"Refresh example styles" || true
- uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GH_TOKEN_UPDATE_GRADLE_WRAPPER }}
token: ${{ secrets.GITHUB_TOKEN }}
branch: refresh-csl
commit-message: Update CSL styles
title: "[Bot] Update CSL styles"
commit-message: Update CSL styles
labels: dependencies

0 comments on commit 07f54ed

Please sign in to comment.