Skip to content

Commit 75ee0f4

Browse files
authored
Update java.yaml
1 parent 8c0e079 commit 75ee0f4

File tree

1 file changed

+7
-17
lines changed

1 file changed

+7
-17
lines changed

.github/workflows/java.yaml

Lines changed: 7 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -10,27 +10,17 @@ on:
1010

1111
jobs:
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

0 commit comments

Comments
 (0)