prefect.deployments.steps.pull
set_working_directory
directory
: the directory to set as the working directorydirectory
key of the
directory that was setagit_clone
repository
: the URL of the repository to clonebranch
: the branch to clone; if not provided, the default branch will be usedcommit_sha
: the commit SHA to clone; if not provided, the default branch will be usedinclude_submodules
: whether to include git submodules when cloning the repositoryaccess_token
: an access token to use for cloning the repository; if not provided
the repository will be cloned using the default git credentialscredentials
: a GitHubCredentials, GitLabCredentials, or BitBucketCredentials block can be used to specify the
credentials to use for cloning the repository.directory
key of the new directory that was createdsubprocess.CalledProcessError
: if the git clone command fails for any reasongit_clone
repository
: the URL of the repository to clonebranch
: the branch to clone; if not provided, the default branch will be usedcommit_sha
: the commit SHA to clone; if not provided, the default branch will be usedinclude_submodules
: whether to include git submodules when cloning the repositoryaccess_token
: an access token to use for cloning the repository; if not provided
the repository will be cloned using the default git credentialscredentials
: a GitHubCredentials, GitLabCredentials, or BitBucketCredentials block can be used to specify the
credentials to use for cloning the repository.directories
: Specify directories you want to be included (uses git sparse-checkout)directory
key of the new directory that was createdsubprocess.CalledProcessError
: if the git clone command fails for any reasonx-token-auth
)
in your secret block. Refer to your git providers documentation for the correct authentication schema.
Clone a repository with submodules:
pull_from_remote_storage
fsspec
.
Args:
url
: the URL of the remote storage location. Should be a valid fsspec
URL.
Some protocols may require an additional fsspec
dependency to be installed.
Refer to the fsspec
docs
for more details.**settings
: any additional settings to pass the fsspec
filesystem class.directory
key of the new directory that was createdpull_with_block
block_document_name
: The name of the block document to useblock_type_slug
: The slug of the type of block to use