Skip to content

Commit

Permalink
chore: add license check action (amundsen-io#58)
Browse files Browse the repository at this point in the history
Signed-off-by: Tao Feng <fengtao04@gmail.com>
  • Loading branch information
feng-tao committed Sep 2, 2020
1 parent 10c3437 commit d7bb816
Showing 1 changed file with 26 additions and 0 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/license.yml
Original file line number Diff line number Diff line change
@@ -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')

0 comments on commit d7bb816

Please sign in to comment.