mirror of
https://github.com/saltstack/salt.git
synced 2025-04-16 17:50:20 +00:00
Update python script to use load_yaml
This commit is contained in:
parent
5b69f6e5ed
commit
0e89ac8050
1 changed files with 2 additions and 2 deletions
4
.github/workflows/scripts/update_winrepo.py
vendored
4
.github/workflows/scripts/update_winrepo.py
vendored
|
@ -23,8 +23,8 @@ new_contents = []
|
|||
added = False
|
||||
for line in current_contents:
|
||||
new_contents.append(line)
|
||||
if "for version in [" in line and not added:
|
||||
new_contents.append(f" '{version}',\n")
|
||||
if "load_yaml as versions_relenv" in line and not added:
|
||||
new_contents.append(f"- {version}\n")
|
||||
added = True
|
||||
|
||||
with open(file, "w") as f:
|
||||
|
|
Loading…
Add table
Reference in a new issue