Blog Links #1196
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: Blog Links | |
on: | |
schedule: | |
- cron: "20 7 * * *" | |
jobs: | |
check-links: | |
if: github.repository == 'canonical/ubuntu.com' | |
runs-on: ubuntu-latest | |
steps: | |
- name: Install linkchecker | |
run: sudo pip install LinkChecker | |
- name: Run linkchecker | |
run: | | |
linkchecker --recursion-level=2 \ | |
--check-extern --no-warnings https://ubuntu.com/blog \ | |
--timeout 1000 \ | |
--no-follow-url '!https:\/\/ubuntu.com\/blog' \ | |
--ignore-url https://res.cloudinary.com \ | |
--ignore-url q_auto \ | |
--ignore-url fl_sanitize \ | |
--ignore-url c_fill \ | |
--ignore-url e_sharpen \ | |
--ignore-url w_[0-9]* \ | |
--ignore-url h_[0-9]* \ | |
--ignore-url https://www.amd.com/* | |
- 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=marketing-pub |