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 - - -