Skip to content

Commit 1b20ab0

Browse files
committed
attempt to fix error in release github action
1 parent b2d378f commit 1b20ab0

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,13 +10,17 @@ on:
1010
description: Version to release
1111
required: true
1212

13+
permissions:
14+
contents: write
15+
1316
jobs:
1417
build:
1518

1619
runs-on: ubuntu-latest
1720

1821
steps:
1922
- uses: actions/checkout@v3
23+
- uses: git-actions/set-user@v1
2024
- name: Set up JDK 11
2125
uses: actions/setup-java@v3
2226
with:
@@ -28,10 +32,6 @@ jobs:
2832
gpg-passphrase: MAVEN_GPG_PASSPHRASE
2933
server-username: MAVEN_USERNAME
3034
server-password: MAVEN_CENTRAL_TOKEN
31-
- name: Setup git profile
32-
run: |
33-
git config --global user.name "github-actions[bot]"
34-
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
3535
- name: Maven release
3636
run: mvn release:prepare release:perform -B -DreleaseVersion=${{ github.event.inputs.releaseVersion }} -Possrh
3737
env:

0 commit comments

Comments
 (0)