mirror of
https://github.com/hashicorp/terraform.git
synced 2026-05-28 04:03:27 -04:00
Only perform the importscheck on added or modified files (#31605)
This commit is contained in:
parent
8354bc46cf
commit
c4e223c7a0
1 changed files with 1 additions and 1 deletions
|
|
@ -2,7 +2,7 @@
|
|||
|
||||
# Check goimports
|
||||
echo "==> Checking the code complies with goimports requirements..."
|
||||
target_files=$(git diff --name-only origin/main | grep "\.go")
|
||||
target_files=$(git diff --name-only origin/main --diff-filter=MA | grep "\.go")
|
||||
|
||||
if [[ -z ${target_files} ]]; then
|
||||
exit 0
|
||||
|
|
|
|||
Loading…
Reference in a new issue