File tree Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Expand file tree Collapse file tree 1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -80,11 +80,27 @@ jobs:
80
80
echo "Prepared assets:"
81
81
ls -l release_assets
82
82
83
+ - name : Generate Release Notes from Changelog
84
+ id : generate_notes
85
+ run : |
86
+ # Use dpkg-parsechangelog to extract the "Changes" field from the latest entry
87
+ # in the debian/changelog file. This text will be used as the body of the release.
88
+ CHANGELOG_BODY=$(dpkg-parsechangelog --show-field Changes -l debian/changelog)
89
+
90
+ # Format for GitHub Actions multiline output
91
+ echo "CHANGELOG_BODY<<EOF" >> $GITHUB_OUTPUT
92
+ echo "${CHANGELOG_BODY}" >> $GITHUB_OUTPUT
93
+ echo "EOF" >> $GITHUB_OUTPUT
94
+
83
95
- name : Create GitHub Release and Upload Artifacts
84
96
uses : softprops/action-gh-release@v1
85
97
with :
86
98
# This will upload all files from the release_assets directory
87
99
files : release_assets/*
100
+ body : |
101
+ ## Changelog
102
+
103
+ ${{ steps.generate_notes.outputs.CHANGELOG_BODY }}
88
104
env :
89
105
GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
90
106
You can’t perform that action at this time.
0 commit comments