From ac9f176b0f53477990b5a75b13b9923a4a7fe23d Mon Sep 17 00:00:00 2001 From: Mik-TF Date: Thu, 29 Feb 2024 14:36:07 -0500 Subject: [PATCH] updated workflow with link checker --- .github/workflows/tf_update_dev.yml | 24 +++++++++++++++++++++++- .github/workflows/tf_update_prod.yml | 24 +++++++++++++++++++++++- 2 files changed, 46 insertions(+), 2 deletions(-) diff --git a/.github/workflows/tf_update_dev.yml b/.github/workflows/tf_update_dev.yml index 63f100b..2434c65 100644 --- a/.github/workflows/tf_update_dev.yml +++ b/.github/workflows/tf_update_dev.yml @@ -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.ourworld.tf/https:\/\/www2.ourworld.tf/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.ourworld.tf -w 404' \ No newline at end of file diff --git a/.github/workflows/tf_update_prod.yml b/.github/workflows/tf_update_prod.yml index 213593b..f54027f 100644 --- a/.github/workflows/tf_update_prod.yml +++ b/.github/workflows/tf_update_prod.yml @@ -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:\/\/www2.ourworld.tf/https:\/\/ourworld.tf/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.ourworld.tf -w 404' \ No newline at end of file