Skip to content

Merge pull request #983 from buildtool/dependabot/go_modules/k8s-e053… #1398

Merge pull request #983 from buildtool/dependabot/go_modules/k8s-e053…

Merge pull request #983 from buildtool/dependabot/go_modules/k8s-e053… #1398

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 .