Skip to content
Snippets Groups Projects
Commit d82abdbe authored by Rafael Guterres Jeffman's avatar Rafael Guterres Jeffman
Browse files

build-galaxy-release: Automatically create CHANGELOG.

Recent versions of ansible-test require the existence of a CHANGELOG
file in the root of the collection. This changes extracts the changes
of the latest available release tag using `utils/changelog` and create
the CHANGELOG file with the result of the command.

The generated changelog will include the changes for the latest release
and, if present, the available changes that were not part of a release.
parent 5aa80204
Branches
Tags
No related merge requests found
......@@ -107,6 +107,11 @@ sed -i -e "s/name: .*/name: \"$collection\"/" galaxy.yml
find . -name "*~" -exec rm {} \;
echo "Creating CHANGELOG.rst..."
"$(dirname "$0")/changelog" --galaxy > CHANGELOG.rst
echo -e "\033[ACreating CHANGELOG.rst... \033[32;1mDONE\033[0m"
sed -i -e "s/ansible.module_utils.ansible_freeipa_module/ansible_collections.${collection_prefix}.plugins.module_utils.ansible_freeipa_module/" plugins/modules/*.py
(cd plugins/module_utils && {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment