From 475ad58f65aa18be2282ea9b0d51220c85b05998 Mon Sep 17 00:00:00 2001 From: Karthick Shankar Date: Tue, 5 Mar 2024 11:03:47 -0800 Subject: [PATCH] feat: add local version and devrelease as inputs (#69) * add local version and devrelease as inputs * explicitly check for true in local_version check --- action.yml | 7 +++++++ entrypoint.sh | 6 ++++++ 2 files changed, 13 insertions(+) diff --git a/action.yml b/action.yml index 7eeb88e..5eed095 100644 --- a/action.yml +++ b/action.yml @@ -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" diff --git a/entrypoint.sh b/entrypoint.sh index 8e7216a..a8a2987 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -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