GithubRunner (autotransform.runner.github)
The implementation for the GithubRunner.
- class autotransform.runner.github.GithubRunner(*, run_workflow: str, update_workflow: str)
Bases:
Runner
A Runner component that is used to trigger Github workflows. See examples/workflows/autotransform.run.yml.
- run_workflow
The name of the workflow to use for running a Schema.
- Type
str
- update_workflow
The name of the workflow to use for updating a Change.
- Type
str
- name
The name of the component.
- Type
ClassVar[RunnerName]
- name: ClassVar[RunnerName] = 'github'
- run(schema: AutoTransformSchema) None
Triggers a full run of a Schema by submitting a workflow run to the Github repo in the Schema.
- Parameters
schema (AutoTransformSchema) – The schema that will be run.
- run_workflow: str
- update(change: Change) None
Triggers an update of the Change by submitting a workflow run to the Github repo in the Schema associated with the change.
- Parameters
change (Change) – The Change to update.
- update_workflow: str