Skip to content

Commit

Permalink
feat: add local version and devrelease as inputs (#69)
Browse files Browse the repository at this point in the history
* add local version and devrelease as inputs

* explicitly check for true in local_version check
  • Loading branch information
karthick-sh authored Mar 5, 2024
1 parent 5329248 commit 475ad58
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
7 changes: 7 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,13 @@ inputs:
prerelease:
description: 'Set as prerelease version'
required: false
devrelease:
description: 'Non-negative integer for dev. release'
required: false
local_version:
description: 'Bump only the local version portion'
required: false
default: "false"
changelog:
description: 'Create changelog when bumping the version'
default: "true"
Expand Down
6 changes: 6 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ fi
if [[ $INPUT_PRERELEASE ]]; then
CZ_CMD+=('--prerelease' "$INPUT_PRERELEASE")
fi
if [[ $INPUT_DEVRELEASE ]]; then
CZ_CMD+=('--devrelease' "$INPUT_DEVRELEASE")
fi
if [[ $INPUT_LOCAL_VERSION == 'true' ]]; then
CZ_CMD+=('--local_version')
fi
if [[ $INPUT_COMMIT == 'false' ]]; then
CZ_CMD+=('--files-only')
fi
Expand Down

0 comments on commit 475ad58

Please sign in to comment.