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 }}