Skip to content

Commit 22ab1a7

Browse files
committed
test
1 parent e272027 commit 22ab1a7

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/java.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,14 +15,16 @@ jobs:
1515
steps:
1616
- uses: actions/checkout@v3
1717
- name: Check Copyright
18+
with:
19+
fetch-depth: 0
1820
env:
1921
EXTENSIONS: "*.java"
2022
BASE_COPYRIGHT: "Copyright IBM Corp. 2016"
2123
run: |
2224
for ext in "$EXTENSIONS"; do
2325
for file in $(find . -type f -name "$ext" ! -path "cics-java-liberty-link-app/*"); do
2426
echo "Processing file: $file"
25-
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")
2628
2729
if ! grep -q "Copyright" "$file"; then
2830
echo -e "/**\n * $BASE_COPYRIGHT\n */\n$(cat "$file")" > "$file"

0 commit comments

Comments
 (0)