From 20b53447d0f3efbf0d341137bfbecf4457fe66f1 Mon Sep 17 00:00:00 2001 From: moisseev Date: Fri, 10 May 2024 13:23:09 +0300 Subject: [PATCH] Check links using container --- .github/workflows/main.yml | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index c43bdc35c..0d483432c 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -23,10 +23,19 @@ jobs: ln -s ../_site/ _site-root/${{ github.event.repository.name }} - run: ls ./_site-root/ - run: ls ./_site-root/${{ github.event.repository.name }} + - name: Check broken links env: INPUT_URL: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }} INPUT_PAGES_PATH: ./_site-root/ - INPUT_CMD_PARAMS: '--verbose --buffer-size=8192 --max-connections=10 --color=always --skip-tls-verification' + INPUT_CMD_PARAMS: '--buffer-size=8192 --max-connections=10 --color=always --skip-tls-verification' run: | wget -qO- https://raw.githubusercontent.com/ruzickap/action-my-broken-link-checker/v2/entrypoint.sh | bash + + - name: Check links using container + if: ${{ always() }} + uses: ruzickap/action-my-broken-link-checker@v2 + with: + url: https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }} + pages_path: ./_site-root/ + cmd_params: '--verbose --buffer-size=8192 --max-connections=10 --color=always --skip-tls-verification --header="User-Agent:curl/7.54.0" --exclude="https://${{ github.repository_owner }}.github.io/${{ github.event.repository.name }}/doc/lua/lua_.+"'