You've already forked matrix-js-sdk
mirror of
https://github.com/matrix-org/matrix-js-sdk.git
synced 2025-07-31 15:24:23 +03:00
Invoke changelog_head from outside the pushd
so we know the relative path is right
This commit is contained in:
@ -154,8 +154,9 @@ if [ $dodist -eq 0 ]; then
|
|||||||
# it's building
|
# it's building
|
||||||
DIST_VERSION="$tag" npm run dist
|
DIST_VERSION="$tag" npm run dist
|
||||||
|
|
||||||
`dirname $0`/scripts/changelog_head.py > latest_changes.md
|
|
||||||
popd
|
popd
|
||||||
|
|
||||||
|
cat "${builddir}/CHANGELOG.md" | `dirname $0`/scripts/changelog_head.py > "${builddir}/latest_changes.md"
|
||||||
for i in "$builddir"/dist/*; do
|
for i in "$builddir"/dist/*; do
|
||||||
assets="$assets -a $i"
|
assets="$assets -a $i"
|
||||||
if [ -n "$signing_id" ]
|
if [ -n "$signing_id" ]
|
||||||
|
@ -1,13 +1,14 @@
|
|||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
|
||||||
"""
|
"""
|
||||||
Outputs the body of the first entry of changelog file CHANGELOG.md
|
Outputs the body of the first entry of changelog file on stdin
|
||||||
"""
|
"""
|
||||||
|
|
||||||
import re
|
import re
|
||||||
|
import sys
|
||||||
|
|
||||||
found_first_header = False
|
found_first_header = False
|
||||||
for line in open("CHANGELOG.md"):
|
for line in sys.stdin:
|
||||||
line = line.strip()
|
line = line.strip()
|
||||||
if re.match(r"^Changes in \[.*\]", line):
|
if re.match(r"^Changes in \[.*\]", line):
|
||||||
if found_first_header:
|
if found_first_header:
|
||||||
|
Reference in New Issue
Block a user