From bbd6a73498244bb1e63c2c628b1e5dbc5cdec9b6 Mon Sep 17 00:00:00 2001 From: Andrii Bodnar Date: Fri, 16 Jun 2023 10:56:53 +0300 Subject: [PATCH] test --- .github/workflows/test-action.yml | 2 +- entrypoint.sh | 6 +++++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/.github/workflows/test-action.yml b/.github/workflows/test-action.yml index d8d64a8..61331fe 100644 --- a/.github/workflows/test-action.yml +++ b/.github/workflows/test-action.yml @@ -22,5 +22,5 @@ jobs: - name: Get CLI version uses: ./ with: - command: '' + command: 'init' command_args: '-V' diff --git a/entrypoint.sh b/entrypoint.sh index 09e8f2a..a3289ca 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -314,9 +314,13 @@ if [ -n "$INPUT_TRANSLATION" ]; then set -- "$@" --translation="${INPUT_TRANSLATION}" fi +if [ -n "$INPUT_COMMAND_ARGS" ]; then + set -- "$@" ${INPUT_COMMAND_ARGS} +fi + #EXECUTE COMMANDS -if [ -n "$INPUT_COMMAND" ] || [ -n "$INPUT_COMMAND_ARGS" ]; then +if [ -n "$INPUT_COMMAND" ]; then echo "RUNNING COMMAND crowdin $INPUT_COMMAND $INPUT_COMMAND_ARGS" crowdin $INPUT_COMMAND $INPUT_COMMAND_ARGS