Skip to content

Commit

Permalink
Merge pull request #302 from threefoldtech/development-split
Browse files Browse the repository at this point in the history
Link Checker
  • Loading branch information
A-Harby authored Jan 28, 2024
2 parents 497bcfe + 00b13b6 commit 3ff7222
Show file tree
Hide file tree
Showing 4 changed files with 104 additions and 3 deletions.
24 changes: 23 additions & 1 deletion .github/workflows/manual_update_development.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
branches: [ development ]

jobs:
job_one:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
Expand All @@ -22,3 +22,25 @@ jobs:
git fetch
git reset --hard origin/development
mdbook build -d docs
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.manual.grid.tf -e 404 500 501 502 503 504 -w all'
24 changes: 23 additions & 1 deletion .github/workflows/manual_update_development_split.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
branches: [ development-split ]

jobs:
job_one:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
Expand All @@ -22,3 +22,25 @@ jobs:
git fetch
git reset --hard origin/development-split
mdbook build -d docs
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.manual.grid.tf -e 404 500 501 502 503 504 -w all'
24 changes: 23 additions & 1 deletion .github/workflows/manual_update_master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ on:
branches: [ master ]

jobs:
job_one:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
Expand All @@ -22,3 +22,25 @@ jobs:
git fetch
git reset --hard origin/master
mdbook build -d docs
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.manual.grid.tf -e 404 500 501 502 503 504 -w all'
35 changes: 35 additions & 0 deletions .github/workflows/manual_weekly_link_check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
name: Weekly Link Check
on:
schedule:
- cron: '0 6 * * 5'

jobs:
checkwww:
name: Check for Broken Links on www
runs-on: ubuntu-latest
steps:
- name: Check for Broken Links on www
id: link-report www
uses: docker://ghcr.io/threefoldfoundation/website-link-checker:latest
with:
args: 'https://www.manual.grid.tf -e 404 500 501 502 503 504 -w all'

checkwww2:
name: Check for Broken Links on www2
runs-on: ubuntu-latest
steps:
- name: Check for Broken Links
id: link-report www2
uses: docker://ghcr.io/threefoldfoundation/website-link-checker:latest
with:
args: 'https://www2.manual.grid.tf -e 404 500 501 502 503 504 -w all'

checkwww3:
name: Check for Broken Links on www3
runs-on: ubuntu-latest
steps:
- name: Check for Broken Links
id: link-report www3
uses: docker://ghcr.io/threefoldfoundation/website-link-checker:latest
with:
args: 'https://www3.manual.grid.tf -e 404 500 501 502 503 504 -w all'

0 comments on commit 3ff7222

Please sign in to comment.