Skip to content

Commit

Permalink
Add Markdown link check workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
marcransome committed Sep 3, 2022
1 parent 0ea3ea8 commit dab891d
Show file tree
Hide file tree
Showing 2 changed files with 40 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .github/markdown/markdown-links.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"ignorePatterns": [
{
"pattern": "^https://opensource.org/licenses"
}
]
}
33 changes: 33 additions & 0 deletions .github/workflows/markdown-links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
name: "Markdown links"
on:
push:
branches:
- main
pull_request:
branches:
- main
release:
types:
- published
schedule:
- cron: '0 18 * * 1'
jobs:
check:
name: Check
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Check links in modified Markdown files
if: github.event_name == 'pull_request'
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
base-branch: main
check-modified-files-only: yes
use-verbose-mode: yes
config-file: .github/markdown/markdown-links.json
- name: Check links in all Markdown files
if: github.event_name != 'pull_request'
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-verbose-mode: yes
config-file: .github/markdown/markdown-links.json

0 comments on commit dab891d

Please sign in to comment.