Skip to content

Commit

Permalink
automation: add changelog check (#268)
Browse files Browse the repository at this point in the history
* automation: add changelog check

* add changelog

* remove change and changelog
  • Loading branch information
mnecas authored May 11, 2021
1 parent 94a6e1c commit 787efe9
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions automation/build-artifacts.sh
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,9 @@ ansible-test sanity
/usr/local/bin/ansible-lint roles/* -x 204

cd $ROOT_PATH

# If PR changed something in ./plugins or ./roles it is required to have changelog
if [[ $(git diff --quiet HEAD^ ./plugins ./roles)$? -eq 1 && $(git diff --quiet HEAD^ ./changelogs)$? -eq 0 ]]; then
echo "Please add changelog.";
exit 1;
fi

0 comments on commit 787efe9

Please sign in to comment.