Skip to content

Commit

Permalink
chore: check markdown links
Browse files Browse the repository at this point in the history
  • Loading branch information
boyvinall committed Jan 2, 2024
1 parent 1d211f5 commit 5a975dc
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 0 deletions.
17 changes: 17 additions & 0 deletions .github/workflows/check-links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Check Markdown links

on:
push:
schedule:
- cron: "0 9 * * 0"

jobs:
markdown-link-check:
runs-on: ubuntu-22.04
container: ghcr.io/tcort/markdown-link-check:stable
steps:
- uses: actions/checkout@v4
- name: Check links
run: |
ls -al
find . -name '*.md' -exec markdown-link-check '{}' --config mlc_config.json -v ';'
4 changes: 4 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,20 @@ jobs:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v4

- name: Configure Git Credentials
run: |
git config user.name github-actions[bot]
git config user.email github-actions[bot]@users.noreply.github.com
- uses: actions/setup-python@v4
with:
python-version: 3.12
cache: 'pip' # caching pip dependencies

- name: Install Dependencies
run: pip install -r requirements.txt

- name: Deploy
if: ${{ github.ref == 'refs/heads/main' }}
run: mkdocs gh-deploy --strict --force
7 changes: 7 additions & 0 deletions mlc_config.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"ignorePatterns": [
{
"pattern": "^http://localhost"
}
]
}

0 comments on commit 5a975dc

Please sign in to comment.