diff --git a/.github/workflows/broken-links.yaml b/.github/workflows/broken-links.yaml index 7f3f436e44..e5fc4787e6 100644 --- a/.github/workflows/broken-links.yaml +++ b/.github/workflows/broken-links.yaml @@ -34,14 +34,15 @@ jobs: npm install -D --save postcss-cli npm install -D --save postcss hugo server --bind 127.0.0.1 & - - name: curl - uses: sozo-design/curl@v1.0.2 - with: - args: --head -X GET --retry 50 --retry-connrefused --retry-delay 10 http://127.0.0.1:1313/csm-docs/ - - name: wget - uses: wei/wget@v1 - with: - args: --spider -o spider.log -e robots=off -rp http://127.0.0.1:1313/csm-docs/ + - name: Install curl and wget + run: | + sudo apt-get install -y curl + sudo apt-get install -y wget + - name: Wait for Hugo server + run: curl --head -X GET --retry 5 --retry-connrefused --retry-delay 10 http://127.0.0.1:1313/csm-docs/ + - name: Run wget spider + run: | + wget --spider -o spider.log -e robots=off -rp http://127.0.0.1:1313/csm-docs/ - name: Output logs run: | cat spider.log