Skip to content

Merge pull request #966 from buildtool/dependabot/go_modules/k8s-5b0f… #1361

Merge pull request #966 from buildtool/dependabot/go_modules/k8s-5b0f…

Merge pull request #966 from buildtool/dependabot/go_modules/k8s-5b0f… #1361

name: Check copyright headers
on:
push:
branches: [ main ]
paths-ignore:
- 'www/**'
- '*.md'
- '.editorconfig'
- 'LICENSE'
- 'install.sh'
pull_request:
branches: [ main ]
paths-ignore:
- 'www/**'
- '*.md'
- '.editorconfig'
- 'LICENSE'
- 'install.sh'
jobs:
copyright-check:
runs-on: ubuntu-latest
name: Check copyright headers
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: 'go.mod'
check-latest: 'true'
- name: check license and headers
run: |
go install github.com/google/[email protected]
addlicense -f LICENSE -c "buildtool" -ignore "**/*.yaml" -ignore "**/*.yml" -ignore ".github/*" -ignore "www/site/**" -y "2018" --check .