Check Links #149
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 }}/ |