Skip to content

Commit

Permalink
fix(workflow): sorted dirs in updates, to execute first utils and the…
Browse files Browse the repository at this point in the history
…n the project_type
  • Loading branch information
danimarinBG committed Aug 2, 2024
1 parent f902275 commit 0b55dc1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion test/execute_sql_files.py
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ def main(project_type):
# Check if the updates subdirectory exists and process it
if os.path.isdir(subdir_path):
for root, dirs, files in os.walk(subdir_path):
dirs[:] = [d for d in dirs if d in ['utils', f"{project_type}"]]
dirs[:] = sorted([d for d in dirs if d in ['utils', f"{project_type}"]])
for file in sorted(files):
if file.endswith(".sql"):
file_path = os.path.join(root, file)
Expand Down

0 comments on commit 0b55dc1

Please sign in to comment.