Skip to content

Commit

Permalink
Fix workflow variable collision
Browse files Browse the repository at this point in the history
  • Loading branch information
jacobtomlinson committed Jan 9, 2024
1 parent 1dc5514 commit d11289d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions ci/update-kubernetes.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,9 @@ def get_versions():
return data


def update_workflow(versions, workflow):
workflow = yaml.load(Path(workflow))
def update_workflow(versions, workflow_path):
workflow_path = Path(workflow_path)
workflow = yaml.load(workflow_path)
workflow["jobs"]["test"]["strategy"]["matrix"]["kubernetes-version"][0] = versions[
0
]["latest_kind_container"]
Expand All @@ -69,7 +70,7 @@ def update_workflow(versions, workflow):
"kubernetes-version": version["latest_kind_container"],
}
)
yaml.dump(workflow, Path(workflow))
yaml.dump(workflow, workflow_path)


def update_badges(filename, versions):
Expand Down

0 comments on commit d11289d

Please sign in to comment.