From 9f04913ad49babc3c9d3d9275f8a06b47cb322cf Mon Sep 17 00:00:00 2001 From: vsoch Date: Thu, 4 Aug 2022 06:25:17 -0600 Subject: [PATCH] prepare action for 0.0.32 release - including serial command Signed-off-by: vsoch --- Dockerfile | 2 +- README.md | 1 + action.yml | 5 +++++ entrypoint.sh | 6 ++++++ 4 files changed, 13 insertions(+), 1 deletion(-) diff --git a/Dockerfile b/Dockerfile index eb404af..9f6da98 100644 --- a/Dockerfile +++ b/Dockerfile @@ -1,4 +1,4 @@ -FROM ghcr.io/urlstechie/urlchecker:0.0.31 +FROM ghcr.io/urlstechie/urlchecker:0.0.32 COPY entrypoint.sh /entrypoint.sh WORKDIR /github/workspace ENTRYPOINT ["/bin/bash", "/entrypoint.sh"] diff --git a/README.md b/README.md index bfe5068..83a7fb3 100644 --- a/README.md +++ b/README.md @@ -131,6 +131,7 @@ jobs: | `git_path` | optional | A git url to clone, if the repository isn't already in $PWD | | `branch` | optional | If we do a clone, clone this branch (defaults to master | | `cleanup` | optional | If we do a clone, delete the cloned folder after (false) | +| `serial` | optional | Run in serial (good for debugging) | | `subfolder` | optional | A subfolder to navigate to in the repository to check | | `file_types` | optional | A comma-separated list of file types to cover in the URLs checks. | | `include_files` | optional | A comma-separated list of exact files to check. | diff --git a/action.yml b/action.yml index 5fc75fe..4fda049 100644 --- a/action.yml +++ b/action.yml @@ -45,6 +45,11 @@ inputs: required: false default: false + serial: + description: "Run in serial (good for debugging)" + required: false + default: false + retry_count: description: "If a request fails, retry this number of times. Defaults to 1" required: false diff --git a/entrypoint.sh b/entrypoint.sh index dfd45c5..107ed36 100755 --- a/entrypoint.sh +++ b/entrypoint.sh @@ -37,6 +37,12 @@ if [ "${INPUT_VERBOSE}" == "true" ]; then COMMAND="${COMMAND} --verbose" fi +# run in serial for debugging? +if [ "${INPUT_SERIAL}" == "true" ]; then + COMMAND="${COMMAND} --serial" +fi + + # Do we have a number of workers defined? if [ ! -z "${INPUT_WORKERS}" ]; then export URLCHECKER_WORKERS=${INPUT_WORKERS}