Skip to content

Commit 6fbd75c

Browse files
committed
Merge branch 'ci/optimize-fmt' into test-fmt-change
2 parents 2edff22 + 549fbdd commit 6fbd75c

5 files changed

Lines changed: 9 additions & 1 deletion

File tree

.github/workflows/java-bigquerystorage-ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,8 @@ jobs:
114114
runs-on: ubuntu-latest
115115
steps:
116116
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4
117+
with:
118+
fetch-depth: 0
117119
- uses: actions/setup-java@v2
118120
with:
119121
distribution: temurin

.github/workflows/java-datastore-ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,8 @@ jobs:
137137
runs-on: ubuntu-latest
138138
steps:
139139
- uses: actions/checkout@v4
140+
with:
141+
fetch-depth: 0
140142
- uses: actions/setup-java@v4
141143
with:
142144
distribution: temurin

.github/workflows/java-logging-ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ jobs:
129129
runs-on: ubuntu-latest
130130
steps:
131131
- uses: actions/checkout@v4
132+
with:
133+
fetch-depth: 0
132134
- uses: actions/setup-java@v4
133135
with:
134136
distribution: temurin

.github/workflows/java-logging-logback-ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,8 @@ jobs:
129129
runs-on: ubuntu-latest
130130
steps:
131131
- uses: actions/checkout@v4
132+
with:
133+
fetch-depth: 0
132134
- uses: actions/setup-java@v4
133135
with:
134136
distribution: temurin

.kokoro/build.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -200,7 +200,7 @@ case ${JOB_TYPE} in
200200
if [ -n "${BASE_SHA}" ] && [ -n "${HEAD_SHA}" ]; then
201201
# Optimize the build by identifying ONLY the Maven modules that contain changed Java source files.
202202
# Format those specific modules instead of the entire codebase, reducing format check time.
203-
changed_file_list=$(git diff --name-only "${BASE_SHA}" "${HEAD_SHA}")
203+
changed_file_list=$(git diff --name-only "${BASE_SHA}" "${HEAD_SHA}" --relative)
204204
echo "${changed_file_list}"
205205

206206
has_code_change="false"

0 commit comments

Comments
 (0)