Skip to content

Commit

Permalink
CI: Validate changelog.md is updated every version bump
Browse files Browse the repository at this point in the history
  • Loading branch information
Rufflewind committed Dec 24, 2019
1 parent 4ae67c1 commit 2daee93
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tools/testscript
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,12 @@ build() {
cabal_install_run_tests dist/*-*.tar.gz --force-reinstalls

fi

version=`sed -n 's/^version:[[:space:]]*//p' directory.cabal`
grep -q "## $version (" changelog.md || {
echo >&2 "Error: Please describe version $version in changelog.md."
return 1
}
}

"$@"

0 comments on commit 2daee93

Please sign in to comment.