updated workflow with link checker
This commit is contained in:
parent
9a2959c535
commit
ac9f176b0f
24
.github/workflows/tf_update_dev.yml
vendored
24
.github/workflows/tf_update_dev.yml
vendored
@ -4,7 +4,7 @@ on:
|
|||||||
branches: [ development ]
|
branches: [ development ]
|
||||||
|
|
||||||
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 reset --hard origin/development
|
git reset --hard origin/development
|
||||||
sed -i "s/https:\/\/www.ourworld.tf/https:\/\/www2.ourworld.tf/g" config.toml
|
sed -i "s/https:\/\/www.ourworld.tf/https:\/\/www2.ourworld.tf/g" config.toml
|
||||||
./build.sh
|
./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.ourworld.tf -w 404'
|
24
.github/workflows/tf_update_prod.yml
vendored
24
.github/workflows/tf_update_prod.yml
vendored
@ -4,7 +4,7 @@ on:
|
|||||||
branches: [ master ]
|
branches: [ master ]
|
||||||
|
|
||||||
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 reset --hard origin/master
|
git reset --hard origin/master
|
||||||
sed -i "s/https:\/\/www2.ourworld.tf/https:\/\/ourworld.tf/g" config.toml
|
sed -i "s/https:\/\/www2.ourworld.tf/https:\/\/ourworld.tf/g" config.toml
|
||||||
./build.sh
|
./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.ourworld.tf -w 404'
|
Loading…
Reference in New Issue
Block a user