Skip to content

Commit

Permalink
Merge pull request #98 from urlstechie/add/serial
Browse files Browse the repository at this point in the history
prepare action for 0.0.32 release - including serial command
  • Loading branch information
vsoch authored Aug 4, 2022
2 parents 108d4b9 + 9f04913 commit e44ecd4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 1 deletion.
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
@@ -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"]
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -131,6 +131,7 @@ jobs:
| `git_path` | <span style="color:green"> optional </span> | A git url to clone, if the repository isn't already in $PWD |
| `branch` | <span style="color:green"> optional </span> | If we do a clone, clone this branch (defaults to master |
| `cleanup` | <span style="color:green"> optional </span> | If we do a clone, delete the cloned folder after (false) |
| `serial` | <span style="color:green"> optional </span> | Run in serial (good for debugging) |
| `subfolder` | <span style="color:green"> optional </span> | A subfolder to navigate to in the repository to check |
| `file_types` | <span style="color:green"> optional </span> | A comma-separated list of file types to cover in the URLs checks. |
| `include_files` | <span style="color:green"> optional </span> | A comma-separated list of exact files to check. |
Expand Down
5 changes: 5 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
6 changes: 6 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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}
Expand Down

0 comments on commit e44ecd4

Please sign in to comment.