Skip to content

Commit 5844cdf

Browse files
committed
Sort the lists of sls files for easier reading in CI output
1 parent 687958d commit 5844cdf

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

scripts/linting

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ if [[ "$linting_scope" == 'merge' ]]; then
4848
git config --global --add safe.directory "$(pwd)" > /dev/null
4949
git fetch origin "$destination_branch"
5050
# Gather a list of sls files included in the merge request
51-
slsfiles_merge="$(git diff --name-only origin/$destination_branch HEAD | grep -E '\.sls$')"
51+
slsfiles_merge="$(git diff --name-only origin/$destination_branch HEAD | grep -E '\.sls$' | sort)"
5252

5353
# Confirm that the files found by git diff exist. If there are files that have been added or
5454
# deleted in the target branch of the merge/pull request, they will cause errors (usually with yamllint)
@@ -67,7 +67,7 @@ elif [[ "$linting_scope" == 'single' ]]; then
6767

6868
elif [[ "$linting_scope" == 'all' || "$linting_scope" == '' ]]; then
6969
# Gather a list of all sls files included in the repository
70-
slsfiles=("$(find * -type f -iname '*.sls')")
70+
slsfiles=("$(find * -type f -iname '*.sls' | sort)")
7171
fi
7272

7373
# Test if any sls files were found

0 commit comments

Comments
 (0)