Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions .github/workflows/java.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,31 @@ on:
- cron: '0 0 * * *'

jobs:
check-copyright:
name: Check Copyright
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: Check Copyright
env:
EXTENSIONS: "*.java"
COPYRIGHT_STATEMENT: "/**\n * Copyright IBM Corp. 2025\n */"
run: |
for ext in $EXTENSIONS; do
for file in $(find . -type f -name "$ext" ! -path "cics-java-osgi-jdbc-app/*"); do
if ! grep -q "Copyright" "$file"; then
echo -e "$COPYRIGHT_STATEMENT\n$(cat "$file")" > "$file"
fi
done
done

- name: Create Pull Request
uses: peter-evans/create-pull-request@v7
with:
token: ${{ secrets.GITHUB_TOKEN }}
base: ${{ github.head_ref }}

build-mvnw:
name: Build Maven Wrapper

Expand Down
Loading