Sometimes, it’s useful to manipulate the way Woodpecker Pipelines clone and organize your code. For example, if you need to clone other repositories as well, putting them into their own folders can make for much less hassle than repos-within-a-repo that aren’t submodules.
See also
- Woodpecker’s docs on doing this: https://woodpecker-ci.org/docs/usage/workflow-syntax#clone
- The Git plugin: https://woodpecker-ci.org/plugins/git-clone
Note that when overriding the default clone step, it has to be done outside of the steps section of the pipeline file!
Don’t clone at all
If you don’t need the project repository cloned at all, you can simply specify
skip_clone: truein the top level of the workflow YAML.