diff --git a/action.yml b/action.yml index bf46375..05c8fd5 100644 --- a/action.yml +++ b/action.yml @@ -39,4 +39,4 @@ outputs: runs: using: docker # image: 'Dockerfile' - image: 'docker://ghcr.io/jniklas2/dnscontrol-action:v4.14.0-3' + image: 'docker://ghcr.io/jniklas2/dnscontrol-action:v4.14.0-4' diff --git a/entrypoint.sh b/entrypoint.sh index 2e43f76..3143eb9 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -26,14 +26,6 @@ if [ "$ALLOW_FETCH" = true ]; then ARGS+=(--allow-fetch) fi -if !(printf '%s\0' "$@" | grep -Fxqz -- 'check'); then - if [ "$ENABLE_CONCURRENT" = true ]; then - ARGS+=("--cmode=concurrent") - elif [ "$ENABLE_CONCURRENT" = true ]; then - ARGS+=("--cmode=legacy") - fi -fi - ARGS+=( "$@" --config "$CONFIG_ABS_PATH" @@ -42,6 +34,12 @@ ARGS+=( # 'check' sub-command doesn't require credentials if [ "$1" != "check" ]; then ARGS+=(--creds "$CREDS_ABS_PATH") + + if [ "$ENABLE_CONCURRENT" = true ]; then + ARGS+=(--cmode "concurrent") + elif [ "$ENABLE_CONCURRENT" = true ]; then + ARGS+=(--cmode "legacy") + fi fi OUTPUT=()