Skip to content

Commit

Permalink
Merge pull request #11 from fish-shop/check-markdown-links
Browse files Browse the repository at this point in the history
Add markdown link checker workflow
  • Loading branch information
marcransome authored Feb 24, 2022
2 parents df01d5a + 2308b3c commit 629d129
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/links.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: markdown-links
on:
push:
branches:
- main
pull_request:
branches:
- main
release:
types:
- published
schedule:
- cron: "0 18 * * *"
jobs:
markdown-links:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- 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
- 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

0 comments on commit 629d129

Please sign in to comment.