diff --git a/action.yml b/action.yml index 52dde08..073b10a 100644 --- a/action.yml +++ b/action.yml @@ -21,6 +21,9 @@ inputs: loadtest: description: 'load-test option. e.g "true"' required: false + concurrency: + description: 'concurrency option. e.g. "0"' + required: false runs: using: 'docker' diff --git a/docs/reference/cli.md b/docs/reference/cli.md index 5cf80b5..9531cfa 100644 --- a/docs/reference/cli.md +++ b/docs/reference/cli.md @@ -69,6 +69,7 @@ The `run` command lets you run a specified workflow | --secret [-s] | No | Supply secret variables (can be defined multiple times) | | --verbose [-v] | No | Verbose mode: always show request/response | | --loadtest [-load] | No | Run test in load-testing mode | +| --concurrency | No | Concurrency setting | #### **Examples** diff --git a/entrypoint.sh b/entrypoint.sh index c657ec0..afb9ac0 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -20,4 +20,8 @@ if [ "$LOADTEST" == "true" ]; then EXECUTION_COMMAND="$EXECUTION_COMMAND --load" fi +if [ -n "$CONCURRENCY" ]; then + EXECUTION_COMMAND="$EXECUTION_COMMAND --concurrency $CONCURRENCY" +fi + eval $EXECUTION_COMMAND