added link checker in workflow

This commit is contained in:
Mik-TF
2024-03-01 00:08:31 -05:00
parent 1e5f708a98
commit 47d5ab1033

View File

@@ -4,7 +4,7 @@ on:
branches: [ 3.10.0 ] branches: [ 3.10.0 ]
jobs: jobs:
job_one: deploy:
name: Deploy name: Deploy
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
@@ -22,3 +22,25 @@ jobs:
git pull git pull
sed -i "s/https:\/\/www.threefold.io/https:\/\/www3.threefold.io/g" config.toml sed -i "s/https:\/\/www.threefold.io/https:\/\/www3.threefold.io/g" config.toml
bash build.sh bash build.sh
wait:
needs: deploy
name: Wait for Website Update
runs-on: ubuntu-latest
steps:
- name: Wait Period
id: wait-deploy
run: |
echo "Sleeping for 30"
sleep 30
checklinks:
needs: wait
name: Check for Broken Links
runs-on: ubuntu-latest
steps:
- name: Check for Broken Links
id: link-report
uses: docker://ghcr.io/threefoldfoundation/website-link-checker:latest
with:
args: 'https://www3.threefold.io -w 404'