From 4653151abb9d8c0e5a26489e428b9169f88b1070 Mon Sep 17 00:00:00 2001 From: Karoly Czovek <30385976+karolyczovek@users.noreply.github.com> Date: Thu, 29 Jan 2026 08:31:43 +0100 Subject: [PATCH 1/5] Add config option to action.yml --- action.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/action.yml b/action.yml index 16c3985..1521c3a 100644 --- a/action.yml +++ b/action.yml @@ -122,3 +122,6 @@ inputs: manual_version: description: "Manually specify the version to bump to" required: false + config: + description: "Manually specify the config file to use" + required: false From dd4c0b4c1ffe4298c1e2a5f1aeea1df9abae91d7 Mon Sep 17 00:00:00 2001 From: Karoly Czovek <30385976+karolyczovek@users.noreply.github.com> Date: Thu, 29 Jan 2026 08:34:03 +0100 Subject: [PATCH 2/5] Set CZ_CMD if INPUT_CONFIG is provided Add conditional to set CZ_CMD based on INPUT_CONFIG. --- entrypoint.sh | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/entrypoint.sh b/entrypoint.sh index 5abe71c..3a14f32 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -108,6 +108,10 @@ else ACTOR=$GITHUB_ACTOR fi +if [[ $INPUT_CONFIG ]]; then + CZ_CMD+=("--config ${CONFIG}") +fi + REV="$(cz version --project)" if [[ $REV == "$PREV_REV" ]]; then INPUT_PUSH='false' From 511e8a0673de05a5a05449b40e2ea5ea5a9b4ec9 Mon Sep 17 00:00:00 2001 From: Karoly Czovek <30385976+karolyczovek@users.noreply.github.com> Date: Thu, 29 Jan 2026 08:47:30 +0100 Subject: [PATCH 3/5] Placed config as firt option - as cz expects --- entrypoint.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index 3a14f32..9a5e2d9 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -51,6 +51,11 @@ echo "previous_version_minor=${PREV_REV_MINOR}" >>"$GITHUB_OUTPUT" CZ_CMD=('cz') + +if [[ $INPUT_CONFIG ]]; then + CZ_CMD+=("--config ${CONFIG}") +fi + if [[ $INPUT_DEBUG == 'true' ]]; then CZ_CMD+=('--debug') fi @@ -108,10 +113,6 @@ else ACTOR=$GITHUB_ACTOR fi -if [[ $INPUT_CONFIG ]]; then - CZ_CMD+=("--config ${CONFIG}") -fi - REV="$(cz version --project)" if [[ $REV == "$PREV_REV" ]]; then INPUT_PUSH='false' From a149ed35d78d33b805446bedb9e5d4c1283c9161 Mon Sep 17 00:00:00 2001 From: Karoly Czovek <30385976+karolyczovek@users.noreply.github.com> Date: Thu, 29 Jan 2026 08:49:16 +0100 Subject: [PATCH 4/5] Fix config flag syntax in entrypoint.sh --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 9a5e2d9..21c3386 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -53,7 +53,7 @@ echo "previous_version_minor=${PREV_REV_MINOR}" >>"$GITHUB_OUTPUT" CZ_CMD=('cz') if [[ $INPUT_CONFIG ]]; then - CZ_CMD+=("--config ${CONFIG}") + CZ_CMD+=('--config' "$CONFIG") fi if [[ $INPUT_DEBUG == 'true' ]]; then From c42d10bfb514a3e098c0b4b5ba93be7b2d8bc06f Mon Sep 17 00:00:00 2001 From: Karoly Czovek <30385976+karolyczovek@users.noreply.github.com> Date: Thu, 29 Jan 2026 09:19:00 +0100 Subject: [PATCH 5/5] Update entrypoint.sh --- entrypoint.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/entrypoint.sh b/entrypoint.sh index 21c3386..77e2d4e 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -53,7 +53,7 @@ echo "previous_version_minor=${PREV_REV_MINOR}" >>"$GITHUB_OUTPUT" CZ_CMD=('cz') if [[ $INPUT_CONFIG ]]; then - CZ_CMD+=('--config' "$CONFIG") + CZ_CMD+=('--config' "$INPUT_CONFIG") fi if [[ $INPUT_DEBUG == 'true' ]]; then