Skip to content

Commit 7a85ca6

Browse files
authored
Merge pull request #5 from google-gemini/license-check
Add license check
2 parents b82f6ca + 12bcf38 commit 7a85ca6

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/license.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: License
2+
3+
on:
4+
push:
5+
branches: ["main"]
6+
pull_request:
7+
branches: ["main"]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
13+
steps:
14+
- name: 'Checkout Code'
15+
uses: actions/checkout@v4
16+
17+
- name: Set up Go ${{matrix.go-version}}
18+
uses: actions/setup-go@v5
19+
with:
20+
go-version: ${{matrix.go-version}}
21+
22+
- name: 'Validate License Headers'
23+
# NOTE: Keep in sync with .hooks/addlicense
24+
run: go run github.com/google/addlicense@v1.1.1 -check -s=only -ignore='bin/**' -ignore='**/.terraform.lock.hcl' -ignore='definitions/**' **

0 commit comments

Comments
 (0)