From abaf553c1df5b6596c6d4fd0700451a91c813e55 Mon Sep 17 00:00:00 2001 From: Tao Feng Date: Wed, 2 Sep 2020 09:56:15 -0700 Subject: [PATCH] chore: add license check action (#58) Signed-off-by: Tao Feng --- .github/workflows/license.yml | 26 ++++++++++++++++++++++++++ 1 file changed, 26 insertions(+) create mode 100644 .github/workflows/license.yml diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml new file mode 100644 index 0000000..f43325a --- /dev/null +++ b/.github/workflows/license.yml @@ -0,0 +1,26 @@ +name: license + +on: + push: + branches: + - master + pull_request: + branches: + - master + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - uses: actions/checkout@v2 + - name: Set up Golang + uses: actions/setup-go@v2 + - name: Install addlicense + run: | + export PATH=${PATH}:`go env GOPATH`/bin + go get -v -u github.com/google/addlicense + - name: Check license + run: | + export PATH=${PATH}:`go env GOPATH`/bin + addlicense -check -l mit -c "Amundsen" $(find $PWD -type f -name '*.py') \ No newline at end of file