Skip to content

Commit f5119df

Browse files
committed
change release message
1 parent 9ddfd70 commit f5119df

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/create-release-package.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,24 @@ jobs:
2525
cmake -DMADDY_CREATE_PACKAGE=ON ..
2626
make maddy_package
2727
28+
- name: Get current tag message
29+
id: tag-message
30+
run: |
31+
TAG_NAME=${GITHUB_REF#refs/tags/}
32+
TAG_MESSAGE=$(git for-each-ref refs/tags/$TAG_NAME --format='%(contents)')
33+
echo "message<<EOF" >> $GITHUB_OUTPUT
34+
echo "$TAG_MESSAGE" >> $GITHUB_OUTPUT
35+
echo "EOF" >> $GITHUB_OUTPUT
36+
2837
- name: create release
2938
uses: svenstaro/upload-release-action@v2
3039
with:
3140
repo_token: ${{ secrets.GITHUB_TOKEN }}
3241
file: build/maddy-src.zip
3342
tag: ${{ github.ref }}
34-
body: "You can find all changes of this release in the [changelog](https://github.com/progsource/maddy/blob/master/CHANGELOG.md)"
43+
body: |
44+
${{ steps.tag-message.outputs.message }}
45+
46+
---
47+
48+
You can find all changes of this release in the [changelog](https://github.com/progsource/maddy/blob/master/CHANGELOG.md)

0 commit comments

Comments
 (0)