Skip to content

Check links

Check links #138

Workflow file for this run

---
name: 'Check links'
# yamllint disable-line rule:truthy
on:
workflow_dispatch:
schedule:
- cron: '37 11 * * 2'
permissions:
contents: read
jobs:
links:
runs-on: ubuntu-latest
steps:
- name: Checkout repo
uses: actions/checkout@v3
with:
submodules: true
- name: Install Python and just
uses: opensafely-core/setup-action@v1
with:
install-just: true
python-version: '3.11'
- name: Build site
env:
AccessToken: ${{ secrets.GITHUB_TOKEN }}
MKDOCS_SITE_URL: https://docs.opensafely.org
EHRQL_BRANCH: steve/fix-links-2023-07-25
run: just build
- name: Move imported documentation to correct relative path
run: mv imported_docs/* docs/
- name: Check links
uses: lycheeverse/lychee-action@ec3ed119d4f44ad2673a7232460dc7dff59d2421 # v1.8.0
with:
args: "--exclude-all-private --exclude-mail --include-verbatim --require-https --verbose --no-progress --timeout 60 './docs/**/*.md' './docs/**/*.html', './imported_docs/**/*.md' './imported_docs/**/*.html' --exclude-path './docs/ehrql/includes/generated_docs'"
fail: true
env:
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}}