Skip to content

Commit

Permalink
feat: add check-consistency option
Browse files Browse the repository at this point in the history
  • Loading branch information
liblaf committed Oct 4, 2022
1 parent 7083fa6 commit f2c0d3f
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,7 @@ inputs:
increment:
description: "Manually specify the desired increment"
required: false
check_consistency:
default: false
description: "check consistency among versions defined in commitizen configuration and version_files"
required: false
3 changes: 3 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,9 @@ fi
if [[ $INPUT_INCREMENT ]]; then
CZ_CMD+=('--increment' "$INPUT_INCREMENT")
fi
if [[ $INPUT_CHECK_CONSISTENCY ]]; then
CZ_CMD+=('--check-consistency')
fi
if [[ $INPUT_CHANGELOG_INCREMENT_FILENAME ]]; then
CZ_CMD+=('--changelog-to-stdout')
echo "${CZ_CMD[@]}" ">$INPUT_CHANGELOG_INCREMENT_FILENAME"
Expand Down

0 comments on commit f2c0d3f

Please sign in to comment.