This function is a part of the GitHub Action.
Therefore it only works when run in a GitHub Action on the main or master
branch.
Otherwise it will only return a message.
It sets a new tag at the current commit using the related entry from
NEWS.md
as message.
This tag will turn into a release.
See also
Other git:
clean_git()
,
create_draft_pr()
,
is_repository()
,
is_workdir_clean()
,
new_branch()