Use email variable for GitHub Bot git email

This commit is contained in:
Filip Hrisafov 2024-09-06 16:35:37 +03:00
parent 796dd94674
commit 12c9c6c1f0

View File

@ -38,7 +38,7 @@ jobs:
NEXT_VERSION=$COMPUTED_NEXT_VERSION
fi
./mvnw -ntp -B versions:set versions:commit -DnewVersion=$RELEASE_VERSION -pl :mapstruct-parent -DgenerateBackupPoms=false
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git config --global user.email "${{ vars.GH_BOT_EMAIL }}"
git config --global user.name "GitHub Action"
git commit -a -m "Releasing version $RELEASE_VERSION"
git push