feat(build): use CHANGELOG.md for release notes instead of commit history
Signed-off-by: Boris Yumankulov <boria138@altlinux.org>
This commit is contained in:
parent
6d3e0982c9
commit
b317e4760b
@ -145,14 +145,17 @@ jobs:
|
|||||||
with:
|
with:
|
||||||
path: release/
|
path: release/
|
||||||
|
|
||||||
- name: Get Changes between Tags
|
- name: Extract changelog for version
|
||||||
id: changes
|
id: changelog
|
||||||
uses: https://github.com/simbo/changes-between-tags-action@v1
|
run: |
|
||||||
|
VERSION="${{ env.VERSION }}"
|
||||||
|
VERSION=${VERSION#v} # Remove 'v' prefix if present
|
||||||
|
awk "/^## \\[$VERSION\\]/ {flag=1; next} /^## \\[/ || /^---/ {flag=0} flag" CHANGELOG.md > changelog.txt
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: https://gitea.com/actions/gitea-release-action@v1
|
uses: https://gitea.com/actions/gitea-release-action@v1
|
||||||
with:
|
with:
|
||||||
body: ${{ steps.changes.outputs.changes }}
|
body_path: changelog.txt
|
||||||
token: ${{ env.GITEA_TOKEN }}
|
token: ${{ env.GITEA_TOKEN }}
|
||||||
tag_name: ${{ env.VERSION }}
|
tag_name: ${{ env.VERSION }}
|
||||||
prerelease: true
|
prerelease: true
|
||||||
|
Loading…
x
Reference in New Issue
Block a user