Skip to content

Commit 994b84e

Browse files
Release action: Setup Git User and use -ntp for Maven
1 parent 1d4d4f3 commit 994b84e

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
@@ -20,12 +20,12 @@ jobs:
2020
java-version: 11
2121
distribution: 'temurin'
2222
cache: maven
23+
24+
- name: Setup Git user
25+
uses: fregante/setup-git-user@v2
2326

2427
- name: Publish to GitHub Packages
25-
run: |
26-
git config user.name "${{ github.event.head_commit.committer.name }}"
27-
git config user.email "${{ github.event.head_commit.committer.email }}"
28-
mvn -B release:prepare release:perform
28+
run: mvn -ntp -B release:prepare release:perform
2929
env:
3030
GITHUB_TOKEN: ${{ github.token }}
3131

0 commit comments

Comments
 (0)