From a63d985b721294cff1bd863d3a7d4eff6c81cc42 Mon Sep 17 00:00:00 2001 From: Justin Bingham Date: Sun, 16 Apr 2023 15:21:48 -0400 Subject: [PATCH] add git author identity --- .github/workflows/maven-release.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/maven-release.yml b/.github/workflows/maven-release.yml index 8b1418a..2564575 100644 --- a/.github/workflows/maven-release.yml +++ b/.github/workflows/maven-release.yml @@ -56,6 +56,10 @@ jobs: echo $XFORMER_BOT_GPG_KEY | base64 --decode | gpg --batch --import echo $XFORMER_BOT_GPG_PASSPHRASE | gpg --batch --passphrase-fd 0 --pinentry-mode loopback --import-ownertrust gpg --list-keys --keyid-format LONG + - name: Configure git user + run: | + git config --global user.name ${{ vars.XFORMER_BOT_USERNAME }} + git config --global user.email ${{ vars.XFORMER_BOT_EMAIL }} - name: Determine release version id: determine-release-version run: | @@ -67,7 +71,7 @@ jobs: echo "RELEASE_VERSION_FLAG='-DautoVersionIncrement=true'" >> $GITHUB_OUTPUT fi - name: Prepare the release - run: mvn -B release:prepare --file pom.xml -s ${{ github.workspace }}/settings.xml ${{ steps.determine-release-version.outputs.RELEASE_VERSION_FLAG }} -Dusername=${{ vars.XFORMER_BOT_USERNAME }} -Dgpg.keyname=${{ secrets.XFORMER_BOT_GPG_KEY_ID }} -D gpg.passphrase=${{ secrets.XFORMER_BOT_GPG_PASSPHRASE }} + run: mvn -B release:prepare --file pom.xml -s ${{ github.workspace }}/settings.xml ${{ steps.determine-release-version.outputs.RELEASE_VERSION_FLAG }} -Dgpg.keyname=${{ secrets.XFORMER_BOT_GPG_KEY_ID }} -Dgpg.passphrase=${{ secrets.XFORMER_BOT_GPG_PASSPHRASE }} env: MAVEN_USERNAME: ${{ secrets.JD_OSS_MAVEN_USERNAME }} MAVEN_PASSWORD: ${{ secrets.JD_OSS_MAVEN_PASSWORD }}