Skip to content

Commit 2b149d9

Browse files
committed
Fix auto version increment
1 parent 68d0932 commit 2b149d9

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/ci.yml

+4-2
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,9 @@ jobs:
7474
# https://stackoverflow.com/questions/57921325/gradle-signarchives-unable-to-read-secret-key
7575
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SONATYPE_SIGNING_KEY_PASSWORD }}
7676
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SONATYPE_SIGNING_PRIVATE_KEY }}
77-
GH_PERSONAL_ACCESS_TOKEN: ${{ secrets.GH_PERSONAL_ACCESS_TOKEN }}
77+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
78+
permissions:
79+
contents: write
7880
steps:
7981
- uses: actions/checkout@v3
8082
with:
@@ -133,4 +135,4 @@ jobs:
133135
./gradlew setSnapshotVersionSuffix --info
134136
git add gradle.properties
135137
git commit -m "Setting next snapshot version [skip ci]"
136-
git push https://x-access-token:${GH_PERSONAL_ACCESS_TOKEN}@github.com/${GITHUB_REPOSITORY}.git --follow-tags
138+
git push https://x-access-token:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY}.git --follow-tags

0 commit comments

Comments
 (0)