Skip to content

Commit 2a48a8c

Browse files
authored
Fix triggering workflows (#10433)
1 parent 4536f1e commit 2a48a8c

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

.github/workflows/refresh-csl-subtrees.yml

+1-7
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,10 @@ on:
55
- cron: '1 2 1,15 * *'
66
workflow_dispatch:
77

8-
permissions:
9-
contents: read
10-
118
jobs:
129
publish:
1310
name: Refresh Citation Style Language Files
1411
runs-on: ubuntu-latest
15-
permissions:
16-
contents: write # for peter-evans/create-pull-request to create branch
17-
pull-requests: write # for peter-evans/create-pull-request to create a PR
1812
if: (github.repository == 'JabRef/jabref')
1913
steps:
2014
- uses: actions/checkout@v4
@@ -52,7 +46,7 @@ jobs:
5246
cp buildres/csl/csl-locales/locales-en-US.xml src/main/resources/csl-locales/
5347
- uses: peter-evans/create-pull-request@v5
5448
with:
55-
token: ${{ secrets.GITHUB_TOKEN }}
49+
token: ${{ secrets.GH_TOKEN_UPDATE_GRADLE_WRAPPER }}
5650
branch: refresh-csl
5751
title: "[Bot] Update CSL styles"
5852
commit-message: Update CSL styles

.github/workflows/refresh-journal-lists.yml

+1-7
Original file line numberDiff line numberDiff line change
@@ -5,16 +5,10 @@ on:
55
- cron: '1 2 2,16 * *'
66
workflow_dispatch:
77

8-
permissions:
9-
contents: read
10-
118
jobs:
129
publish:
1310
name: Refresh Journal List Files
1411
runs-on: ubuntu-latest
15-
permissions:
16-
contents: write # for peter-evans/create-pull-request to create branch
17-
pull-requests: write # for peter-evans/create-pull-request to create a PR
1812
if: (github.repository == 'JabRef/jabref')
1913
steps:
2014
- uses: actions/checkout@v4
@@ -44,7 +38,7 @@ jobs:
4438
./gradlew generateJournalListMV
4539
- uses: peter-evans/create-pull-request@v5
4640
with:
47-
token: ${{ secrets.GITHUB_TOKEN }}
41+
token: ${{ secrets.GH_TOKEN_UPDATE_GRADLE_WRAPPER }}
4842
branch: update-journal-lists
4943
title: "[Bot] Update journal abbreviation lists"
5044
commit-message: Update journal abbreviation lists

0 commit comments

Comments
 (0)