Skip to content

Commit a250dcc

Browse files
committed
ci(semantic-release): use m2r built in to image
* which is the Debian packaged `python3-m2r`
1 parent fbae838 commit a250dcc

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

pre-commit_semantic-release.sh

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
###############################################################################
44
# (A) Update `FORMULA` with `${nextRelease.version}`
55
###############################################################################
6+
67
sed -i -e "s_^\(version:\).*_\1 ${1}_" FORMULA
78

89

@@ -13,16 +14,13 @@ sed -i -e "s_^\(version:\).*_\1 ${1}_" FORMULA
1314
maintainer contributor --ignore-contributors semantic-release-bot,renovate[bot]
1415

1516
###############################################################################
16-
# (C) Use `m2r2` to convert automatically produced `.md` docs to `.rst`
17+
# (C) Use `m2r` to convert automatically produced `.md` docs to `.rst`
1718
###############################################################################
1819

19-
# Install `m2r2`
20-
pip3 install m2r2
21-
2220
# Copy and then convert the `.md` docs
2321
cp ./*.md docs/
2422
cd docs/ || exit
25-
m2r2 --overwrite ./*.md
23+
m2r --overwrite ./*.md
2624

2725
# Change excess `H1` headings to `H2` in converted `CHANGELOG.rst`
2826
sed -i -e '/^=.*$/s/=/-/g' CHANGELOG.rst

0 commit comments

Comments
 (0)