diff --git a/content/reference/yaml/templates.md b/content/reference/yaml/templates.md index ac3010bfd..5ee6ccedc 100644 --- a/content/reference/yaml/templates.md +++ b/content/reference/yaml/templates.md @@ -53,6 +53,14 @@ templates: source: github.com/go-vela/templates/example.yml@testbranch ``` +```yaml +templates: + # As an alternative, if the template is within the same repository, + # the source can be the path to the template in the Vela workspace. + # This is used in conjunction with `type: file`. + source: path/to/template.yml +``` + #### The `type:` tag ```yaml @@ -61,6 +69,12 @@ templates: type: github ``` +```yaml +templates: + # The 'file' type will grab a template from the repository on a commit. + type: file +``` + #### The `format:` tag ```yaml