diff --git a/.github/workflows/license.yml b/.github/workflows/license.yml new file mode 100644 index 0000000000..f43325aaf3 --- /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