Skip to content

Commit

Permalink
test trigger ci
Browse files Browse the repository at this point in the history
  • Loading branch information
NiniOak committed Sep 19, 2023
1 parent 86aa7a5 commit 3e789c0
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 10 deletions.
11 changes: 2 additions & 9 deletions .github/scripts/filter_changed_files_go_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -8,14 +8,14 @@ set -euo pipefail
files_to_check=$(git diff --name-only "$(git merge-base origin/$BRANCH HEAD~)"...HEAD $*)

# Define the directories to check
skipped_directories=("docs/" "ui/" "website/" "grafana/")
skipped_directories=("docs/" "ui/" "website/" "grafana/" ".github/")

# Initialize a variable to track directories outside the skipped ones
other_directories=""
skip_ci=false

# 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
for dir in "${skipped_directories[@]}"; do
if [[ "$file_to_check" != "$dir"* ]] || [[ "$file_to_check" != *.md && "$dir" != *"/" ]]; then
echo -e "$file_to_check"
Expand All @@ -27,13 +27,6 @@ for file_to_check in $files_to_check; do

done

# if [ "$file_is_skipped" = "true" ]; then
# skip_ci=true
# echo "Only doc file(s) changed - skip-ci: $skip_ci"
# echo "skip-ci=$skip_ci" >>"$GITHUB_OUTPUT"
# exit 0 ## if file is in list of the skipped_directory, exit script
# fi

skip_ci=true
echo -e "$files_to_check"
echo "Only doc file(s) changed - skip-ci: $skip_ci"
Expand Down
2 changes: 1 addition & 1 deletion test-integ/peering_commontopo/ac1_basic_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import (
)

type ac1BasicSuite struct {
// inputs
// inputs test
DC string
Peer string

Expand Down

0 comments on commit 3e789c0

Please sign in to comment.