Skip to content

RazcoDev/broken-urls-in-code

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

81 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

actions status

Broken URLs in Code Action

Tired of broken URLs in your code ?

This action will check all URLs in your code and report broken ones. Simple as that.

Build

$ npm run build && npm run package

Test

$ npm test

Action Usage

- name: Check broken URLs
  uses: RazcoDev/[email protected]
  with:
    # The directory you want to check
    directory: '.'
    # The files glob to check the URLs inside
    files-glob: '**/*.js'
    # The URLs regex to check
    url-regex: 'http[s]?:\/\/(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\\(\\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+'

Inputs

directory

Required The directory you want to check. Default ..

files-glob

Required The files glob to check the URLs inside. Default **/*.

url-regex

Required The URLs regex to check. Default http[s]?:\/\/(?:[a-zA-Z]|[0-9]|[$-_@.&+]|[!*\\(\\),]|(?:%[0-9a-fA-F][0-9a-fA-F]))+.

Outputs

broken-urls

The broken URLs found in the code.

License

Apache-2.0 License

Authors: Raz Cohen