Skip to content

Commit

Permalink
backport of commit e5531f2
Browse files Browse the repository at this point in the history
  • Loading branch information
NiniOak committed Sep 20, 2023
1 parent 8b43309 commit 3fa3f91
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/scripts/filter_changed_files_go_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -19,8 +19,9 @@ files_to_check=$(git diff --name-only "$(git merge-base origin/$SKIP_CHECK_BRANC
skipped_directories=("docs/" "ui/" "website/" "grafana/")

# Loop through the changed files and find directories/files outside the skipped ones
for file_to_check in $files_to_check; do
for file_to_check in "${files_to_check[@]}"; do
file_is_skipped=false
echo $file_to_check
for dir in "${skipped_directories[@]}"; do
if [[ "$file_to_check" == "$dir"* ]] || [[ "$file_to_check" == *.md && "$dir" == *"/" ]]; then
file_is_skipped=true
Expand Down

0 comments on commit 3fa3f91

Please sign in to comment.