Skip to content

Commit 5df007f

Browse files
authored
Make update_versions write out a file to track what services were updated (#9)
1 parent eb0d4f9 commit 5df007f

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.gitignore

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,3 +30,6 @@ build/
3030

3131
# Smithy
3232
.smithy.lsp.log
33+
34+
# changed file
35+
.changed

.scripts/update_versions

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,11 @@ def main(properties_file: Path, projects: Set[str]):
3838
)
3939
properties[project_key] = properties[project_key]
4040
write_properties(properties_file, properties)
41+
42+
# Write the file containing the list of changed services, excluding the 'all' project
43+
changed_file = properties_file.parent / '.changed'
44+
projects.discard('all')
45+
changed_file.write_text("\n".join(projects))
4146

4247

4348
def read_properties(properties_file: Path) -> dict:

0 commit comments

Comments
 (0)