From fb221ac1c83fae63a04d1b3149abfd44ac3dd76f Mon Sep 17 00:00:00 2001 From: Yevheniy Oliynyk Date: Thu, 11 Sep 2025 21:05:28 +0200 Subject: [PATCH] fix: bundle download with branch param conflict (#291) --- entrypoint.sh | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/entrypoint.sh b/entrypoint.sh index e71015d..270d67c 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -314,10 +314,6 @@ if [ "$INPUT_DEBUG_MODE" = true ] || [ -n "$RUNNER_DEBUG" ]; then set -- "$@" --verbose --debug fi -if [ -n "$INPUT_CROWDIN_BRANCH_NAME" ]; then - set -- "$@" --branch="${INPUT_CROWDIN_BRANCH_NAME}" -fi - if [ -n "$INPUT_CONFIG" ]; then set -- "$@" --config="${INPUT_CONFIG}" fi @@ -355,6 +351,12 @@ if [ -n "$INPUT_COMMAND_ARGS" ]; then set -- "$@" ${INPUT_COMMAND_ARGS} fi +DOWNLOAD_BUNDLE_ARGS="$@" + +if [ -n "$INPUT_CROWDIN_BRANCH_NAME" ]; then + set -- "$@" --branch="${INPUT_CROWDIN_BRANCH_NAME}" +fi + #EXECUTE COMMANDS if [ -n "$INPUT_COMMAND" ]; then @@ -410,7 +412,7 @@ fi if [ "$INPUT_DOWNLOAD_BUNDLE" ]; then echo "DOWNLOADING BUNDLE $INPUT_DOWNLOAD_BUNDLE" - crowdin bundle download $INPUT_DOWNLOAD_BUNDLE $@ + crowdin bundle download $INPUT_DOWNLOAD_BUNDLE $DOWNLOAD_BUNDLE_ARGS if [ "$INPUT_PUSH_TRANSLATIONS" = true ]; then [ -z "${GITHUB_TOKEN}" ] && {