Skip to content

Commit

Permalink
clean up PR
Browse files Browse the repository at this point in the history
  • Loading branch information
NiniOak committed Aug 22, 2023
1 parent 0ff179e commit c423b62
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/scripts/filter_changed_files_go_test.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
files_to_check=$(git diff --name-only origin/$GITHUB_BASE_REF)

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

# Initialize a variable to track directories outside the skipped ones
other_directories=""
Expand All @@ -22,12 +22,12 @@ for file_to_check in $files_to_check; do
if [ "$file_is_skipped" = "false" ]; then
other_directories+="$(dirname "$file_to_check")\n"
trigger_ci=true
echo "One or more non doc file(s) changed: true"
echo "One or more non doc file(s) changed: $trigger_ci"
echo -e $other_directories
echo "trigger-ci=$trigger_ci" >> "$GITHUB_OUTPUT"
exit 0 ## if file is outside of the skipped_directory exit loop
fi
done

echo "One or more non doc file(s) changed: false"
echo "One or more non doc file(s) changed: $trigger_ci"
echo "trigger-ci=$trigger_ci" >> "$GITHUB_OUTPUT"

0 comments on commit c423b62

Please sign in to comment.