File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -27,14 +27,21 @@ jobs:
2727 java-version : ' 11.x'
2828 distribution : ' adopt'
2929 cache : maven
30+
31+ - name : Bot Details
32+ id : bot-details
33+ uses : raven-actions/bot-details@v1
34+
3035 - name : Restore Snapshots
3136 env :
3237 SNAPSHOT_VERSION : ${{ github.event.inputs.snapshot }}
38+ BOT_DISPLAY_NAME : ${{ steps.bot-details.outputs.name }}
39+ BOT_EMAIL : ${{ steps.bot-details.outputs.email }}
3340 run : |
3441 # restore versions snapshot
3542 echo "Initializing git"
36- git config user.name github-actions
37- git config user.email github-actions@github.com
43+ git config user.name $BOT_DISPLAY_NAME
44+ git config user.email $BOT_EMAIL
3845 echo
3946 echo "Restoring snapshot version tp $SNAPSHOT_VERSION"
4047 mvn versions:set -DnewVersion=$SNAPSHOT_VERSION -DprocessAllModules -DgenerateBackupPoms=false -Pprinting,binary,printingbundle
Original file line number Diff line number Diff line change @@ -43,11 +43,18 @@ jobs:
4343 java-version : ' 11.x'
4444 distribution : ' adopt'
4545 cache : maven
46+
47+ - name : Bot Details
48+ id : bot-details
49+ uses : raven-actions/bot-details@v1
50+
4651 - name : ' Fix versions, commit and tag'
4752 env :
4853 LAST_MS_VERSION : ${{ github.event.inputs.previous-ms-version }}
4954 NEW_MS_VERSION : ${{ github.event.inputs.version }}
5055 JAVA_MODULES_NEW_VERSION : ${{ github.event.inputs.java-modules-version }}
56+ BOT_DISPLAY_NAME : ${{ steps.bot-details.outputs.name }}
57+ BOT_EMAIL : ${{ steps.bot-details.outputs.email }}
5158 run : |
5259
5360 ## Generate changelog
8390 update_changelog $LAST_MS_VERSION $NEW_MS_VERSION
8491 echo "Initializing git"
8592 # Initializing git
86- git config user.name github-actions
87- git config user.email github-actions@github.com
93+ git config user.name $BOT_DISPLAY_NAME
94+ git config user.email $BOT_EMAIL
8895
8996 # Commit changes
9097 echo "Committing changes"
You can’t perform that action at this time.
0 commit comments