docs links on snapcraft.io/docs #151
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 snapcraft.io/docs | |
on: | |
schedule: | |
- cron: "0 13 * * 1" | |
jobs: | |
check-links: | |
if: github.repository == 'canonical-web-and-design/snapcraft.io' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout master | |
uses: actions/checkout@v4 | |
- name: Install linkchecker | |
run: sudo pip install LinkChecker | |
- name: Run linkchecker | |
run: linkchecker --no-follow-url '!https:\/\/snapcraft.io\/docs\/' --ignore-url "https://munchkin.marketo.net" --ignore-url "https://www.gstatic.com" --ignore-url "https://assets.ubuntu.com$" --ignore-url https://snapcraft.io/static/css/styles.css* --check-extern --no-warnings https://snapcraft.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 |