Chris Gunderson
01/16/2024, 5:50 PMpull:
- prefect.deployments.steps.git_clone:
repository: <https://github.com/org/repo.git>
branch: "{{ prefect.blocks.string.branch-env }}"
credentials: "{{ prefect.blocks.github-credentials.service-account-name }}"
Nate
01/16/2024, 5:58 PMChris Gunderson
01/16/2024, 5:59 PMNate
01/16/2024, 6:02 PMprefect.deployments.steps.git_clone
is just a fully qualified name of a python function, so as long as your worker would have something like
your.own.custom.pull.step.action
available in its import space, you could implement such a function that calls git_clone
and then pull_from_s3
conditionallyChris Gunderson
01/16/2024, 6:03 PM