Skip to content

Commit

Permalink
Add NOTICE Copyright year check
Browse files Browse the repository at this point in the history
  • Loading branch information
jomarko committed Dec 4, 2024
1 parent 859b608 commit 4c66815
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions .github/workflows/ci_check_license_headers.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -41,3 +41,7 @@ jobs:
- name: Run Apache RAT
run: |
java -jar apache-rat-0.16.1.jar -d . -E .rat-excludes | grep "== File:" && echo "The files listed above are missing license headers." && exit 1 || echo "All files have license headers."
- name: Check NOTICE Copyright year
run: |
(grep "Copyright $(date +%Y) The Apache Software Foundation" NOTICE && echo "NOTICE Copyright year is up to date") || echo "NOTICE Copyright year is outdated" && exit 1

0 comments on commit 4c66815

Please sign in to comment.