mirror of
https://github.com/opentofu/opentofu.git
synced 2024-12-23 07:33:32 -06:00
Only perform the importscheck on added or modified files (#31605)
This commit is contained in:
parent
8354bc46cf
commit
c4e223c7a0
@ -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 New Issue
Block a user