From 2e17765e1f3890ea0d494f76bbc18cb6227f521a Mon Sep 17 00:00:00 2001 From: Im-Beast Date: Sun, 12 Dec 2021 12:00:31 +0100 Subject: [PATCH] add step for checking license headers --- .github/workflows/deno.yml | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/.github/workflows/deno.yml b/.github/workflows/deno.yml index 43ae3f2..338518c 100644 --- a/.github/workflows/deno.yml +++ b/.github/workflows/deno.yml @@ -30,3 +30,19 @@ jobs: - name: Run tests run: deno test -A --unstable + + - name: Check license headers + run: | + deno run -A https://deno.land/x/anzu@1.0.0/src/cli.ts \ + -i ./ "/.+\.ts/" \ + -e "deps.ts" \ + -l "// Copyright 2021 Im-Beast. All rights reserved. MIT license." \ + -p + + - name: Push changes + run: | + git config user.name Github Actions + git config user.email github-actions@github.com + git add . + git commit -m "chore: Prepend missing license headers" + git push