Skip to content

Commit

Permalink
NO-ISSUE: Add CI check for the NOTICE Copyright year
Browse files Browse the repository at this point in the history
This CI Check should announce if the NOTICE Copyright year is not up to date with current calendar year
  • Loading branch information
jomarko committed Dec 4, 2024
1 parent c049aea commit a86fd1f
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 @@ -38,3 +38,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 a86fd1f

Please sign in to comment.