Workflow: YAML interface (#123)

This commit is contained in:
Kerem Yilmaz 2024-03-24 22:55:38 -07:00 committed by GitHub
parent cf4749c1d5
commit 0b5456a4c6
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 306 additions and 16 deletions

View file

@ -60,6 +60,12 @@ class WorkflowRunContext:
"""
return self.values[key]
def has_parameter(self, key: str) -> bool:
return key in self.parameters
def has_value(self, key: str) -> bool:
return key in self.values
def set_value(self, key: str, value: Any) -> None:
self.values[key] = value