Skip to content

Commit

Permalink
Fix triggering workflows (#10433)
Browse files Browse the repository at this point in the history
  • Loading branch information
koppor authored Oct 1, 2023
1 parent 4536f1e commit 2a48a8c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 14 deletions.
8 changes: 1 addition & 7 deletions .github/workflows/refresh-csl-subtrees.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,10 @@ on:
- 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')
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -52,7 +46,7 @@ jobs:
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 }}
token: ${{ secrets.GH_TOKEN_UPDATE_GRADLE_WRAPPER }}
branch: refresh-csl
title: "[Bot] Update CSL styles"
commit-message: Update CSL styles
Expand Down
8 changes: 1 addition & 7 deletions .github/workflows/refresh-journal-lists.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,10 @@ on:
- 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
if: (github.repository == 'JabRef/jabref')
steps:
- uses: actions/checkout@v4
Expand Down Expand Up @@ -44,7 +38,7 @@ jobs:
./gradlew generateJournalListMV
- uses: peter-evans/create-pull-request@v5
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GH_TOKEN_UPDATE_GRADLE_WRAPPER }}
branch: update-journal-lists
title: "[Bot] Update journal abbreviation lists"
commit-message: Update journal abbreviation lists

0 comments on commit 2a48a8c

Please sign in to comment.