We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e272027 commit 22ab1a7Copy full SHA for 22ab1a7
.github/workflows/java.yaml
@@ -15,14 +15,16 @@ jobs:
15
steps:
16
- uses: actions/checkout@v3
17
- name: Check Copyright
18
+ with:
19
+ fetch-depth: 0
20
env:
21
EXTENSIONS: "*.java"
22
BASE_COPYRIGHT: "Copyright IBM Corp. 2016"
23
run: |
24
for ext in "$EXTENSIONS"; do
25
for file in $(find . -type f -name "$ext" ! -path "cics-java-liberty-link-app/*"); do
26
echo "Processing file: $file"
- LAST_MODIFIED_YEAR=$(git log -1 --format="%ad" --date=format:"%Y" -- "$file")
27
+ LAST_MODIFIED_YEAR=$(git log --follow -1 --format="%ad" --date=format:"%Y" -- "$file")
28
29
if ! grep -q "Copyright" "$file"; then
30
echo -e "/**\n * $BASE_COPYRIGHT\n */\n$(cat "$file")" > "$file"
0 commit comments