@@ -227,31 +227,27 @@ jobs:
227
227
# as described in https://stackoverflow.com/a/70157413
228
228
MAVEN_OPTS : --add-opens=java.base/java.util=ALL-UNNAMED --add-opens=java.base/java.lang.reflect=ALL-UNNAMED --add-opens=java.base/java.text=ALL-UNNAMED --add-opens=java.desktop/java.awt.font=ALL-UNNAMED
229
229
230
- - name : Create release commit
230
+ - name : Set versions
231
231
continue-on-error : true
232
232
run : |
233
- git config user.name github-actions
234
- git config user.email [email protected]
235
-
236
233
release_version=${{ github.event.inputs.release_version }}
237
234
release_branch_name=${release_version%.*}.x
238
235
echo "release_branch_name=$release_branch_name" >> $GITHUB_ENV
239
236
240
- git fetch
241
- git checkout -b $release_branch_name --track origin/$release_branch_name || true
242
- git checkout -b $release_branch_name
243
-
244
237
# Set version in pom.xml files
245
238
mvn clean install -DskipTests -Dmaven.javadoc.skip=true
246
239
mvn versions:set -DnewVersion=${{ github.event.inputs.release_version }}
247
240
mvn versions:commit
248
241
# Set version in Antora module
249
242
yq eval -i '.version = "${{ github.event.inputs.release_version }}"' documentation/developer-guide/antora.yml
250
- # Push changes
251
- git add .
252
- if git commit -m "Add version ${{ github.event.inputs.release_version}}"; then
253
- git push origin ${{ env.release_branch_name }}
254
- fi
243
+
244
+ - name : Commit version changes and push to upstream repository
245
+ uses : stefanzweifel/git-auto-commit-action@v4
246
+ with :
247
+ branch : ${{ env.release_branch_name }}
248
+ commit_user_name : github-actions
249
+ commit_user_email :
[email protected]
250
+ commit_author :
Author <[email protected] >
255
251
256
252
# Full release: Github
257
253
- name : " Create Github release (full)"
0 commit comments