We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6ade3e7 commit 54c1208Copy full SHA for 54c1208
.github/workflows/prs_and_commits.yml
@@ -49,6 +49,15 @@ jobs:
49
distribution: 'adopt'
50
java-version: 8
51
cache: maven
52
+ - name: License header check
53
+ run: |
54
+ mvn license:remove license:format
55
+ if [[ -n $(git status -s) ]]; then
56
+ echo 1>&2 'Some files do not have the correct license header:'
57
+ git diff --name-only 1>&2
58
+ echo 1>&2 'Please update the license headers for these files by running `mvn license:remove license:format`'
59
+ exit 1
60
+ fi
61
- name: Build (Maven)
62
run: mvn -P ci --batch-mode clean package -DskipTests
63
- name: Unit tests (Maven)
0 commit comments