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:
8080 echo "Prepared assets:"
8181 ls -l release_assets
8282
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+
8395 - name : Create GitHub Release and Upload Artifacts
8496 uses : softprops/action-gh-release@v1
8597 with :
8698 # This will upload all files from the release_assets directory
8799 files : release_assets/*
100+ body : |
101+ ## Changelog
102+
103+ ${{ steps.generate_notes.outputs.CHANGELOG_BODY }}
88104 env :
89105 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
90106
You can’t perform that action at this time.
0 commit comments