Skip to content

Commit

Permalink
update action
Browse files Browse the repository at this point in the history
This update includes:
 - no check certificates support
 - ability to check one single file (not just directory)
 - update to chromedriver to work with newer selenium

Signed-off-by: vsoch <[email protected]>
  • Loading branch information
vsoch committed Feb 3, 2024
1 parent b643b43 commit 6167f09
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 4 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout Actions Repository
uses: actions/checkout@v3
uses: actions/checkout@v4
- name: Test GitHub Action
uses: ./
with:
Expand Down
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.34
FROM ghcr.io/urlstechie/urlchecker:0.0.35
COPY entrypoint.sh /entrypoint.sh
WORKDIR /github/workspace
ENTRYPOINT ["/bin/bash", "/entrypoint.sh"]
5 changes: 3 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,9 @@ jobs:
| `timeout` | <span style="color:green"> optional </span> | The timeout to provide to requests to wait for a response. |
| `exclude_urls` | <span style="color:green"> optional </span> | A comma separated list of links. |
| `exclude_patterns` | <span style="color:green"> optional </span> | A comma separated list of patterns. |
| `exclude_files` | <span style="color:green"> optional </span> | Full paths to files to exclude (comma separated list). |
| `force_pass` | <span style="color:green"> optional </span> | Choose whether to force a pass when checks are done. |
| `exclude_files` | <span style="color:green"> optional </span> | Full paths to files to exclude (comma separated list). |
| `force_pass` | <span style="color:green"> optional </span> | Choose whether to force a pass when checks are done.
| `no_check_certs` | <span style="color:green"> optional </span> | Skip checking certificates (use at your own risk). |
| `workers` | <span style="color:green"> optional </span> | The number of checks (one per file) to run in parallel, defaults to 9 |

## Details
Expand Down
4 changes: 4 additions & 0 deletions action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,10 @@ inputs:
description: "Force pass of checking, regardless of the result."
required: false

no_check_certs:
description: "Skip certificate checking (default to false)"
required: false

branch:
description: "If a project (git_path) is defined, use this branch. Defaults to master"
required: false
Expand Down
5 changes: 5 additions & 0 deletions entrypoint.sh
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,11 @@ if [ ! -z "${INPUT_BRANCH}" ]; then
COMMAND="${COMMAND} --branch ${INPUT_BRANCH}"
fi

# no_check_certs is optional
if [ ! -z "${INPUT_NO_CHECK_CERTS}" ]; then
COMMAND="${COMMAND} --no-check-certs"
fi

# cleanup is optional (boolean)
if [ "${INPUT_CLEANUP}" == "true" ]; then
COMMAND="${COMMAND} --cleanup"
Expand Down

0 comments on commit 6167f09

Please sign in to comment.