From 2a48a8c9a77cdc25119ffb5b71fc439a798bcc1a Mon Sep 17 00:00:00 2001 From: Oliver Kopp Date: Sun, 1 Oct 2023 09:57:23 +0200 Subject: [PATCH] Fix triggering workflows (#10433) --- .github/workflows/refresh-csl-subtrees.yml | 8 +------- .github/workflows/refresh-journal-lists.yml | 8 +------- 2 files changed, 2 insertions(+), 14 deletions(-) diff --git a/.github/workflows/refresh-csl-subtrees.yml b/.github/workflows/refresh-csl-subtrees.yml index 2ed569dcb07..4f7237bc166 100644 --- a/.github/workflows/refresh-csl-subtrees.yml +++ b/.github/workflows/refresh-csl-subtrees.yml @@ -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 @@ -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 diff --git a/.github/workflows/refresh-journal-lists.yml b/.github/workflows/refresh-journal-lists.yml index 5ab88581d88..dccbea60e00 100644 --- a/.github/workflows/refresh-journal-lists.yml +++ b/.github/workflows/refresh-journal-lists.yml @@ -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 @@ -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