Skip to content

Commit be701fc

Browse files
committed
Set GitHub Release body in CISet GitHub Release body in CI
1 parent 7741b7f commit be701fc

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

.github/workflows/build.yml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,9 +35,24 @@ jobs:
3535
path: src/UnitTests/TestResults/*.trx
3636

3737
# Release
38+
- name: Get tag message
39+
if: github.ref_type == 'tag'
40+
id: tag_message
41+
run: |
42+
{
43+
echo "message<<EOF"
44+
git fetch -f origin tag ${{github.ref_name}}
45+
git tag -l ${{github.ref_name}} --format="%(contents)"
46+
echo "EOF"
47+
} >> "$GITHUB_OUTPUT"
3848
- name: Create GitHub Release
3949
if: github.ref_type == 'tag'
4050
uses: softprops/action-gh-release@v2
51+
with:
52+
body: |
53+
**[NuGet package](https://www.nuget.org/packages/TypedRest.CodeGeneration/${{steps.gitversion.outputs.nuGetVersion}})**
54+
## Changes
55+
${{steps.tag_message.outputs.message}}
4156
4257
# Publish
4358
- name: Publish documentation

0 commit comments

Comments
 (0)