fix(auto-tag): use correct tag range for release notes
Some checks failed
Auto Tag / autotag (push) Successful in 7s
Auto Tag / wiki-sync (push) Successful in 6s
Auto Tag / changelog (push) Successful in 1m16s
Test / frontend-typecheck (push) Successful in 1m24s
Test / rust-fmt-check (push) Successful in 1m30s
Test / frontend-tests (push) Successful in 1m27s
Auto Tag / build-macos-arm64 (push) Successful in 2m49s
Test / rust-clippy (push) Successful in 4m13s
Auto Tag / build-linux-amd64 (push) Has been cancelled
Auto Tag / build-windows-amd64 (push) Has been cancelled
Auto Tag / build-linux-arm64 (push) Has been cancelled
Test / rust-tests (push) Has been cancelled
Some checks failed
Auto Tag / autotag (push) Successful in 7s
Auto Tag / wiki-sync (push) Successful in 6s
Auto Tag / changelog (push) Successful in 1m16s
Test / frontend-typecheck (push) Successful in 1m24s
Test / rust-fmt-check (push) Successful in 1m30s
Test / frontend-tests (push) Successful in 1m27s
Auto Tag / build-macos-arm64 (push) Successful in 2m49s
Test / rust-clippy (push) Successful in 4m13s
Auto Tag / build-linux-amd64 (push) Has been cancelled
Auto Tag / build-windows-amd64 (push) Has been cancelled
Auto Tag / build-linux-arm64 (push) Has been cancelled
Test / rust-tests (push) Has been cancelled
This commit is contained in:
parent
c53835ec9b
commit
e043da8b89
@ -102,17 +102,16 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
set -eu
|
set -eu
|
||||||
git-cliff --config cliff.toml --output CHANGELOG.md
|
git-cliff --config cliff.toml --output CHANGELOG.md
|
||||||
git-cliff --config cliff.toml --latest --strip all > /tmp/release_body.md
|
CURRENT_TAG=$(git describe --tags --abbrev=0)
|
||||||
echo "=== Release body preview (from CHANGELOG) ==="
|
PREV_TAG=$(git describe --tags --abbrev=0 --match 'v*' --exclude "${CURRENT_TAG}" 2>/dev/null || echo "")
|
||||||
cat /tmp/release_body.md
|
if [ -n "$PREV_TAG" ]; then
|
||||||
# If release body is empty, generate from git commits
|
git-cliff --config cliff.toml --tag "$CURRENT_TAG" --strip all > /tmp/release_body.md || true
|
||||||
if [ ! -s /tmp/release_body.md ]; then
|
else
|
||||||
echo "=== Release body is empty, generating from git commits ==="
|
echo "=== No previous tag found, generating from git commits ==="
|
||||||
LAST_TAG=$(git describe --tags --abbrev=0 2>/dev/null || echo "v0.0.0")
|
git log --pretty=format:"- %s" > /tmp/release_body.md || true
|
||||||
git log "${LAST_TAG}..HEAD" --pretty=format:"- %s" > /tmp/release_body.md || true
|
|
||||||
echo "=== Release body preview (from commits) ==="
|
|
||||||
cat /tmp/release_body.md
|
|
||||||
fi
|
fi
|
||||||
|
echo "=== Release body preview ==="
|
||||||
|
cat /tmp/release_body.md
|
||||||
|
|
||||||
- name: Update Gitea release body
|
- name: Update Gitea release body
|
||||||
env:
|
env:
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user