Skip to content

Check Links

Check Links #159

Workflow file for this run

name: Check Links
on:
workflow_dispatch:
schedule:
- cron: "0 0 * * MON"
jobs:
docs:
name: "Check"
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@main
- name: Dependencies
run: |
pip install --user git+https://github.com/linkchecker/linkchecker.git
echo "${HOME}/.local/bin" >> ${GITHUB_PATH}
- name: Fetch repository name
id: repo-name
run: |
echo "REPOSITORY_NAME=$(echo '${{ github.repository }}' | awk -F '/' '{print $2}')" >> ${GITHUB_OUTPUT}
- name: Run checker
run: |
linkchecker --config=./scripts/linkchecker/linkcheckerrc https://${{ github.repository_owner }}.github.io/${{ steps.repo-name.outputs.REPOSITORY_NAME }}/