kt3k / license-checker

:page_facing_up: CLI tool for checking license headers in files
https://jsr.io/@kt3k/license-checker
MIT License
29 stars 7 forks source link

Github marketplace #33

Open fuhuifang opened 2 years ago

fuhuifang commented 2 years ago

Hi, I've been using the following action in my workflow smoothly, but recently it is breaking with error "Unable to resolve actions. Repository not found: kt3k/license_checker."

- name: License Checker
  uses: kt3k/license_checker@v1.0.6

So I tried to update it to the following based on https://github.com/marketplace/actions/license-checker

- name: License Checker
  uses: kt3k/license_checker_github_action@v1.0.1

but it failed with error "Error: unzip is required to install Deno". What is the correct way to use your license checker in a github workflow?

fuhuifang commented 2 years ago

Update: kt3k/license_checker_github_action@v1.0.6 works, but please let me know if there's a better way.

kt3k commented 2 years ago

The below should work:

run: npx @kt3k/license-checker

If you prefer Deno, then:

- uses: denoland/setup-deno@v1
  with:
    deno-version: v1.x
- run: deno run --allow-read https://deno.land/x/license_checker@v3.2.2/main.ts