From e46c53bb398dc1c4732a9b355222c4ce28f69288 Mon Sep 17 00:00:00 2001 From: potzplitz <127513690+potzplitz@users.noreply.github.com> Date: Sun, 3 Mar 2024 20:05:36 +0100 Subject: [PATCH] Update maven.yml --- .github/workflows/maven.yml | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/.github/workflows/maven.yml b/.github/workflows/maven.yml index e285d9a..95726c9 100644 --- a/.github/workflows/maven.yml +++ b/.github/workflows/maven.yml @@ -44,6 +44,14 @@ jobs: name: packaged-jar path: extracted-jar + - name: Get commit message and description + id: get_commit_info + run: | + COMMIT_MSG=$(git log --format=%B -n 1 ${{ github.sha }}) + COMMIT_DESC=$(git show -s --format=%b ${{ github.sha }}) + echo "::set-output name=COMMIT_MSG::$COMMIT_MSG" + echo "::set-output name=COMMIT_DESC::$COMMIT_DESC" + - name: Create Release id: create_release uses: actions/create-release@v1 @@ -51,7 +59,8 @@ jobs: GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} with: tag_name: ${{ steps.set_release_tag.outputs.RELEASE_TAG }} - release_name: Release ${{ steps.set_release_tag.outputs.RELEASE_TAG }} + release_name: ${{ steps.get_commit_info.outputs.COMMIT_MSG }} + body: ${{ steps.get_commit_info.outputs.COMMIT_DESC }} draft: false prerelease: false @@ -64,6 +73,3 @@ jobs: asset_path: extracted-jar/ExtremeDemonList-0.0.1-SNAPSHOT-jar-with-dependencies.jar asset_name: ExtremeDemonList-0.0.1-SNAPSHOT-jar-with-dependencies.jar asset_content_type: application/ExtremeDemonList-0.0.1-SNAPSHOT-jar-with-dependencies.jar - - -