forked from open-webui/open-webui
fix: show lates changes in releases
fix for ##1048
This commit is contained in:
parent
8ed5759d0e
commit
bbf9deabf0
1 changed files with 5 additions and 5 deletions
10
.github/workflows/build-release.yml
vendored
10
.github/workflows/build-release.yml
vendored
|
@ -29,11 +29,11 @@ jobs:
|
||||||
- name: Extract latest CHANGELOG entry
|
- name: Extract latest CHANGELOG entry
|
||||||
id: changelog
|
id: changelog
|
||||||
run: |
|
run: |
|
||||||
CHANGELOG_CONTENT=$(awk '/^## \[/{n++} n==1' CHANGELOG.md)
|
CHANGELOG_CONTENT=$(awk 'BEGIN {print_section=0;} /^## \[/ {if (print_section == 0) {print_section=1;} else {exit;}} print_section {print;}' CHANGELOG.md)
|
||||||
echo "CHANGELOG_CONTENT<<EOF"
|
CHANGELOG_ESCAPED=$(echo "$CHANGELOG_CONTENT" | sed ':a;N;$!ba;s/\n/%0A/g')
|
||||||
echo "$CHANGELOG_CONTENT"
|
echo "Extracted latest release notes from CHANGELOG.md:"
|
||||||
echo "EOF"
|
echo -e "$CHANGELOG_CONTENT"
|
||||||
echo "::set-output name=content::${CHANGELOG_CONTENT}"
|
echo "::set-output name=content::$CHANGELOG_ESCAPED"
|
||||||
|
|
||||||
- name: Create GitHub release
|
- name: Create GitHub release
|
||||||
uses: actions/github-script@v5
|
uses: actions/github-script@v5
|
||||||
|
|
Loading…
Reference in a new issue