Skip to content

serega404/links-check-action

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

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Links check action

The script searches for all the links in the file and sends requests to them. If there is a link that does not return code 200, the program will terminate with code 1 after checking all links.

Usage

name: Test links
on:
  - push
  - pull_request

jobs:
  check_urls:
    runs-on: ubuntu-latest
    steps:
      - name: Checkout repository
        uses: actions/checkout@v2
      - name: Link check action
        uses: serega404/[email protected]
        with:
          filePath: "README.md"
          ignoreCodes: "403,418"
          ignoreSites: "https://example.com,http://test.com"

Inputs

Input Description
filePath Path to the file to check links
ignoreCodes (optional) A comma-separated list of HTTP status codes to ignore (e.g., 404,500)
ignoreSites (optional) A comma-separated list of sites to ignore (e.g., https://example.com,http://test.com)

References

License

Distributed under the MIT License. See LICENSE for more information.

About

A simple action that checks the availability of links in a file.

Resources

License

Stars

Watchers

Forks