Skip to content

Commit

Permalink
ci: Added markdown-link-check pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
NelsonBN committed Mar 29, 2024
1 parent 17afddc commit c9c4a87
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/markdown-link-check.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"aliveStatusCodes": [429, 200]
}
30 changes: 30 additions & 0 deletions .github/workflows/markdown-link-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: 'Check Markdown links'


on:
workflow_dispatch: # To can dispatch manually

# Schedule to run every week on Sunday at 00:00 UTC
schedule:
- cron: '0 0 * * 0'

pull_request:
types: [opened, reopened, edited, synchronize]
branches:
- main


jobs:
markdown-link-check:
runs-on: ubuntu-latest

steps:
- name: "Checkout"
uses: actions/checkout@v4

- name: 'Readme analysis'
uses: gaurav-nelson/github-action-markdown-link-check@v1
with:
use-verbose-mode: 'yes'
base-branch: 'main'
config-file: '.github/workflows/markdown-link-check.json'

0 comments on commit c9c4a87

Please sign in to comment.