From d099f83179739149d7cbef054b729f5623f2305c Mon Sep 17 00:00:00 2001 From: Andrew Azores Date: Fri, 26 Jan 2024 11:18:27 -0500 Subject: [PATCH] ci(central): switch token to higher-permissioned one --- .github/workflows/maven-central-release.yml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/maven-central-release.yml b/.github/workflows/maven-central-release.yml index c6b70ecd..9efa5041 100644 --- a/.github/workflows/maven-central-release.yml +++ b/.github/workflows/maven-central-release.yml @@ -43,7 +43,7 @@ jobs: - name: Commit & Push changes uses: actions-js/push@v1.4 with: - github_token: ${{ secrets.GITHUB_TOKEN }} + github_token: ${{ secrets.SUBMODULE_TOKEN }} message: "Releasing version ${{ github.event.inputs.version }}" - name: Release with JReleaser env: @@ -53,13 +53,13 @@ jobs: JRELEASER_GPG_PASSPHRASE: ${{ secrets.MAVEN_CENTRAL_GPG_PASSPHRASE }} JRELEASER_NEXUS2_USERNAME: ${{ secrets.MAVEN_CENTRAL_NEXUS2_USERNAME }} JRELEASER_NEXUS2_PASSWORD: ${{ secrets.MAVEN_CENTRAL_NEXUS2_PASSWORD }} - JRELEASER_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + JRELEASER_GITHUB_TOKEN: ${{ secrets.SUBMODULE_TOKEN }} run: ./release.sh - name: Set the next release version run: ./mvnw --batch-mode --no-transfer-progress versions:set -DnewVersion=${{ github.event.inputs.nextVersion }}-SNAPSHOT - name: Commit & Push changes uses: actions-js/push@v1.4 with: - github_token: ${{ secrets.GITHUB_TOKEN }} + github_token: ${{ secrets.SUBMODULE_TOKEN }} message: "Setting version ${{ github.event.inputs.nextVersion }}-SNAPSHOT"