Skip to content
align-left

GitHub Action

License Checker

v1.0.6 Latest version

License Checker

align-left

License Checker

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

Installation

Copy and paste the following snippet into your .yml file.

              

- name: License Checker

uses: kt3k/[email protected]

Learn more about this action in kt3k/license_checker_github_action

Choose a version

Deprecated

Use https://github.com/kt3k/deno_license_checker directly.

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/[email protected]

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.