File tree Expand file tree Collapse file tree 1 file changed +23
-0
lines changed
Expand file tree Collapse file tree 1 file changed +23
-0
lines changed Original file line number Diff line number Diff line change 99 - cron : ' 0 0 * * *'
1010
1111jobs :
12+ check-copyright :
13+ name : Check Copyright
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@v3
17+ - name : Check Copyright
18+ env :
19+ EXTENSIONS : " *.java"
20+ COPYRIGHT_STATEMENT : " /**\n * Copyright IBM Corp. 2016\n */"
21+ run : |
22+ for ext in $EXTENSIONS; do
23+ for file in $(find . -type f -name "$ext" ! -path "cics-java-liberty-link-app/*"); do
24+ if ! grep -q "Copyright" "$file"; then
25+ echo -e "$COPYRIGHT_STATEMENT\n$(cat "$file")" > "$file"
26+ fi
27+ done
28+ done
29+ - name : Create Pull Request
30+ uses : peter-evans/create-pull-request@v7
31+ with :
32+ token : ${{ secrets.GITHUB_TOKEN }}
33+ base : ${{ github.head_ref }}
34+
1235 build-mvnw :
1336 name : Build Maven Wrapper
1437
You can’t perform that action at this time.
0 commit comments