Skip to content
This repository has been archived by the owner on Jan 12, 2024. It is now read-only.
/ URLs-checker Public archive
forked from urlstechie/urlchecker-action

GitHub action to extract and check URLs in code and documentations.

License

Notifications You must be signed in to change notification settings

say/URLs-checker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

84 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status codecov GitHub Marketplace Python License

URLs-checker

A GitHub action to collect and check URLs in a project (code and documentation). The action aims at detecting and reporting broken links.

How to use?

Example

name: Check URLs

on: [push]

jobs:
  build:
    runs-on: ubuntu-latest

    steps:
    - name: URLs-checker
      uses: SuperKogito/URLs-checker@0.1.2
      with:
        # The project base path.
        git_path: https://github.com/SuperKogito/SuperKogito.github.io

        # A comma-separated list of file types to cover in the URL checks
        file_types: .md,.py,.rst

        # Choose whether to include file with no URLs in the prints.
        print_all: False

        # A comma separated links to exclude during URL checks
        white_listed_urls: https://superkogito.github.io/figures/fig2.html, https://superkogito.github.io/figures/fig4.html

        # A comma separated patterns to exclude during URL checks
        white_listed_patterns: https://superkogito.github.io/tables

Inputs

variable name variable type variable description
git_path required The path to the start directory of the project.
file_types optional A comma-separated list of file types to cover in the URLs checks.
print_all optional Choose whether to include file with no URLs in the prints.
white_listed_urls optional A comma separated links to exclude during URL checks.
white_listed_patterns optional A comma separated patterns to exclude during URL checks.

Demo

About

GitHub action to extract and check URLs in code and documentations.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 98.4%
  • Dockerfile 1.6%