docs links on dqlite.io/docs #188
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: docs links on dqlite.io/docs | |
on: | |
schedule: | |
- cron: "0 13 * * 1" | |
jobs: | |
check-links: | |
if: github.repository == 'canonical-web-and-design/dqlite.io' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout master | |
uses: actions/checkout@v3 | |
- name: Install linkchecker | |
run: sudo pip install LinkChecker | |
- name: Run linkchecker | |
run: linkchecker --threads 2 --ignore-url "https://res.cloudinary.com" --ignore-url "https://www.gstatic.com" --ignore-url "https://assets.ubuntu.com$" --check-extern --no-warnings https://dqlite.io/docs | |
- name: Send message on failure | |
if: failure() | |
run: curl -X POST -F "workflow=${GITHUB_WORKFLOW}" -F "repo_name=${GITHUB_REPOSITORY}" -F "action_id=${GITHUB_RUN_ID}" ${{ secrets.BOT_URL }}?room=docs |