Skip to content

GitHub Action for checking the license lines of the files in a repository

License

Notifications You must be signed in to change notification settings

pombredanne/license_checker

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

license_checker

GitHub Action for checking the license lines of the files in a repository

Usage

First create .licenserc.json file like the below:

{
  "**/*.ts": "// Copyright 2019 My Name. All rights reserved. MIT license."
}

`**/*.ts" part means which files to check the license lines, and its value is the actual license lines. Change the glob pattern and license lines for your project.

Then create GitHub workflow file like the below:

name: Check License Lines
on:
  push:
    branches: [master]
jobs:
  check-license-lines:
    runs-on: ubuntu-latest
    steps:
    - uses: actions/checkout@master
    - name: Check License Lines
      uses: kt3k/license_checker@v1.0.1

This action checks the license lines in the files on every push.

See [deno_license_checker][] for more details about available configs in .licenserc.json.

License

Blue Oak Model License, version 1.0.0.

About

GitHub Action for checking the license lines of the files in a repository

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Dockerfile 100.0%