Skip to content

LeandroLS/linksnitch

Use this GitHub action with your project
Add this Action to an existing workflow or create a new one
View on Marketplace

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

52 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

linksnitch 🔗

A GitHub Action that automatically check the status codes response of links in README.md. Useful for checking broken links.

How to use

In your .yml workflow file:

name: A workflow that check if links in README.md is working
on: push
jobs:
  build:
    name: Check if README.md links work
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: LeandroLS/linksnitch@main
        with:
          allowedStatusCodes: '[200, 201]'

In allowdStatusCodes you can set all the status codes that your links can return. If your README.md has some link that don't return one of the status codes set in allowedStatusCodes the workflow will fail and will show to you what links is broken.

Badges

test