Skip to content

Commit

Permalink
As part of creating new release, convert README.md to html
Browse files Browse the repository at this point in the history
Keeping README.html in each role's root dir would help to have a
consistent README.html in all RHEL versions.
Downstream, we can process this to replace upstream terms.
See RHELPLAN-158622
  • Loading branch information
spetrosi committed Jul 27, 2023
1 parent c0ff1d7 commit 45c4b47
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions role-make-version-changelog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -306,9 +306,11 @@ You have three options:
cat "$rel_notes_file" CHANGELOG.md > .tmp-changelog
fi
mv .tmp-changelog CHANGELOG.md
git add CHANGELOG.md
# Expecting that this script is run from the cloned auto-maintenance repo
SCRIPT_DIR="$(dirname -- "$0")"
md2html_tool=pandoc sh "$SCRIPT_DIR"/md2html.sh README.md
git add CHANGELOG.md README.html
{ echo "docs(changelog): version $new_tag [citest skip]"; echo "";
echo "Create changelog update and release for version $new_tag"; } > .gitcommitmsg
git commit -s -F .gitcommitmsg
rm -f .gitcommitmsg "$rel_notes_file" "$new_features_file" \
"$bug_fixes_file" "$other_changes_file" "$pr_titles_file" \
Expand Down

0 comments on commit 45c4b47

Please sign in to comment.