diff --git a/.cookiecutter/cookiecutter.json b/.cookiecutter/cookiecutter.json index 6133b37..ce8edc6 100644 --- a/.cookiecutter/cookiecutter.json +++ b/.cookiecutter/cookiecutter.json @@ -1,5 +1,5 @@ { - "_template": "https://github.com/Shared-Vision-Solutions/ansible-workbench.git", + "_template": "https://github.com/niall-byrne/ansible-workbench.git", "author": "Niall Byrne", "company": "Shared Vision Solutions", "description": "Ansible role that fetches remote content and places it in a configurable location.", diff --git a/.github/scripts/changelog.sh b/.github/scripts/changelog.sh index 9b37286..5005532 100644 --- a/.github/scripts/changelog.sh +++ b/.github/scripts/changelog.sh @@ -12,9 +12,10 @@ set -eo pipefail main() { echo "{}" > package.json - TAG="$(git tag | tr -d "v" | sort --version-sort | tail -n 2 | head -n 1)" - git tag | grep "^${TAG}\$" || TAG="v${TAG}" + + TAG="$(git tag -l --sort=refname | grep -E "[0-9]+\.[0-9]+\.[0-9]+" | tail -n 2 | head -n 1)" CHANGE_LOG_CONTENT="$(npx -q generate-changelog -f - -t "${TAG}")" + { echo "CHANGE_LOG_CONTENT<