File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff 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
6868elif [[ " $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 ) " )
7171fi
7272
7373# Test if any sls files were found
You can’t perform that action at this time.
0 commit comments