This commit is contained in:
potzplitz 2024-03-03 20:06:46 +01:00
commit d47ceb246b

View file

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