File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2020 - uses : actions/checkout@v2
2121
2222 - name : Check - container
23- uses : ruzickap/action-my-broken-link-checker
23+ uses : ./
2424 with :
2525 url : https://google.com
2626 cmd_params : --verbose --ignore-fragments --one-page-only
@@ -29,19 +29,21 @@ jobs:
2929 env :
3030 INPUT_URL : https://google.com
3131 INPUT_CMD_PARAMS : --verbose --ignore-fragments --one-page-only
32- run : wget -qO- https://raw.githubusercontent.com/ruzickap/action-my-broken-link-checker/master/ entrypoint.sh | bash
32+ run : ./ entrypoint.sh
3333
3434 - name : Check - simple - local pages
3535 env :
3636 INPUT_URL : https://my-testing-domain.com
3737 INPUT_PAGES_PATH : ./tests/
3838 INPUT_CMD_PARAMS : --skip-tls-verification --verbose
3939 run :
40- wget -qO- https://raw.githubusercontent.com/ruzickap/action-my-broken-link-checker/master/ entrypoint.sh | bash
40+ ./ entrypoint.sh
4141
4242 build-check :
4343 runs-on : ubuntu-latest
4444 steps :
45+ - uses : actions/checkout@v2
46+
4547 - name : Create web page
4648 run : |
4749 mkdir -v public
@@ -68,10 +70,10 @@ jobs:
6870 INPUT_CMD_PARAMS : --skip-tls-verification --verbose
6971 INPUT_RUN_TIMEOUT : 10
7072 INPUT_DEBUG : true
71- run : wget -qO- https://raw.githubusercontent.com/ruzickap/action-my-broken-link-checker/master/ entrypoint.sh | bash
73+ run : ./ entrypoint.sh
7274
7375 - name : Check links using container
74- uses : ruzickap/action-my-broken-link-checker
76+ uses : ./
7577 with :
7678 url : https://my-testing-domain.com
7779 pages_path : ./public/
Original file line number Diff line number Diff line change @@ -37,7 +37,7 @@ print_info() {
3737cleanup () {
3838 if [ -n " ${PAGES_PATH} " ]; then
3939 # Manipulation with /etc/hosts using 'sed -i' doesn't work inside containers
40- if ! grep -q docker /proc/1 /cgroup ; then
40+ if ! grep -q -E ' ( docker|containerd) ' /proc/self /cgroup ; then
4141 $sudo_cmd sed -i " /127.0.0.1 ${PAGES_DOMAIN} # Created by my-broken-link-checker/d" /etc/hosts
4242 fi
4343 $sudo_cmd caddy stop > /dev/null
You can’t perform that action at this time.
0 commit comments