File tree Expand file tree Collapse file tree 1 file changed +7
-17
lines changed
Expand file tree Collapse file tree 1 file changed +7
-17
lines changed Original file line number Diff line number Diff line change 1010
1111jobs :
1212 check-copyright :
13- name : Check Copyright
1413 runs-on : ubuntu-latest
14+ name : Check Copyright
1515 steps :
16- - uses : actions/checkout@v3
17- - name : Check Copyright
18- env :
19- EXTENSIONS : " *.java, *.js"
20- COPYRIGHT_STATEMENT : " /**\n * Copyright IBM Corp. 2024\n */"
21- run : |
22- for ext in $EXTENSIONS; do
23- for file in $(find . -type f -name "$ext" ! -path "cics-java-liberty-jdbc-web/*"); 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
16+ - uses : actions/checkout@v4
17+ - id : copyright-action
18+ uses : cicsdev/.github/.github/actions/samples-copyright-checker@139edd8dc23af7f4f7dd9afe4d56a1053fe426a7
3119 with :
20+ directory : ' ./cics-java-liberty-jdbc-web/'
21+ file-extensions : ' *.js *.java *.html'
22+ base-copyright : ' Copyright IBM Corp. 2025'
3223 token : ${{ secrets.GITHUB_TOKEN }}
33- base : ${{ github.head_ref }}
3424
3525 build-mvnw :
3626 name : Build Maven Wrapper
You can’t perform that action at this time.
0 commit comments