Skip to content

Commit

Permalink
Fix
Browse files Browse the repository at this point in the history
  • Loading branch information
liurenjie1024 committed Nov 21, 2024
1 parent 3cdc1be commit dd338df
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/checkstyle.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# Copyright (c) 2023-2024, NVIDIA CORPORATION.
# Copyright (c) 2024, NVIDIA CORPORATION.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
Expand Down
7 changes: 6 additions & 1 deletion dev/checkstyle.sh
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,12 @@
set -ex

# Assuming you are in the root of your git repository
MODIFIED_FILES=$(git diff --name-only "origin/${GITHUB_BASE_REF}")
if [[ -z "${GITHUB_BASE_REF+x}" ]]; then
MODIFIED_FILES=$(git diff --name-only)
else
MODIFIED_FILES=$(git diff --name-only "origin/${GITHUB_BASE_REF}")
fi


SRC_DIR="src/main/java/"
TEST_SRC_DIR="src/test/java/"
Expand Down
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -770,7 +770,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<version>3.6.0</version>
<version>3.5.0</version>
<configuration>
<configLocation>dev/checkstyle.xml</configLocation>
<encoding>UTF-8</encoding>
Expand Down

0 comments on commit dd338df

Please sign in to comment.