mirror of
https://github.com/open-webui/open-webui.git
synced 2026-10-14 04:08:46 +00:00
Compare commits
2 commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f8ae8a6c32 | ||
|
|
0b49167ae0 |
1 changed files with 12 additions and 0 deletions
12
.github/workflows/release.yml
vendored
12
.github/workflows/release.yml
vendored
|
|
@ -39,6 +39,18 @@ jobs:
|
||||||
VER="${{ steps.pkg.outputs.version }}"
|
VER="${{ steps.pkg.outputs.version }}"
|
||||||
awk "/^## \[${VER}\]/{found=1; next} /^## \[/{if(found) exit} found{print}" \
|
awk "/^## \[${VER}\]/{found=1; next} /^## \[/{if(found) exit} found{print}" \
|
||||||
CHANGELOG.md > /tmp/release-notes.md
|
CHANGELOG.md > /tmp/release-notes.md
|
||||||
|
python3 - <<'PY'
|
||||||
|
import os
|
||||||
|
from pathlib import Path
|
||||||
|
|
||||||
|
path = Path('/tmp/release-notes.md')
|
||||||
|
notes = path.read_text(encoding='utf-8')
|
||||||
|
# Leave room below GitHub's 125,000-character limit for the full-notes link.
|
||||||
|
if len(notes.encode('utf-8')) > 120000:
|
||||||
|
url = f"{os.environ['GITHUB_SERVER_URL']}/{os.environ['GITHUB_REPOSITORY']}/blob/{os.environ['GITHUB_SHA']}/CHANGELOG.md"
|
||||||
|
notes = notes.encode('utf-8')[:120000].decode('utf-8', errors='ignore').rsplit('\n', 1)[0]
|
||||||
|
path.write_text(notes + f'\n\nRelease notes shortened. [Read the full changelog]({url}).\n', encoding='utf-8')
|
||||||
|
PY
|
||||||
|
|
||||||
- name: Publish GitHub release
|
- name: Publish GitHub release
|
||||||
env:
|
env:
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue