added link checker in www and www2 workflow

This commit is contained in:
Mik-TF
2024-03-06 11:22:32 -05:00
parent d6a2a172f5
commit bc066f0e63
2 changed files with 46 additions and 2 deletions

View File

@@ -4,7 +4,7 @@ on:
branches: [ development ]
jobs:
job_one:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
@@ -22,3 +22,25 @@ jobs:
git reset --hard origin/development
sed -i "s/https:\/\/www.threefold.io/https:\/\/dev.threefold.io/g" config.toml
./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://www2.threefold.io -w 404'

View File

@@ -4,7 +4,7 @@ on:
branches: [ master ]
jobs:
job_one:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
@@ -22,3 +22,25 @@ jobs:
git reset --hard origin/master
sed -i "s/https:\/\/dev.threefold.io/https:\/\/www.threefold.io/g" config.toml
./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://www.threefold.io -w 404'