From 37624191ef7e6b78ac0e31d8600a04900d84c826 Mon Sep 17 00:00:00 2001 From: Aaron Collier Date: Tue, 22 Feb 2022 07:06:32 +0100 Subject: [PATCH] :white_check_mark: Add link checker --- .github/workflows/link-to-docs.yaml | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/.github/workflows/link-to-docs.yaml b/.github/workflows/link-to-docs.yaml index 15770a7825..8e7ceacc43 100644 --- a/.github/workflows/link-to-docs.yaml +++ b/.github/workflows/link-to-docs.yaml @@ -1,4 +1,4 @@ -name: Link to docs +name: Links on: pull_request: types: [opened,reopened] @@ -135,3 +135,14 @@ jobs: repo: context.repo.repo, body: `Your Platform.sh environment has successfully deployed. :rocket:\n\nSee the site: ${process.env.ENV_URL}` }) + + check-links: + runs-on: ubuntu-latest + name: Check links + needs: get_url + if: needs.get_url.outputs.commit_status == 'success' + steps: + - name: Check links with linkcheck + uses: filiph/linkcheck@2.0.19 + with: + arguments: ${{ needs.get_url.outputs.env_url }}