I have the following code in a Azure Pipeline YML.
In checkout.yml (which is used as template)
- checkout: self
clean: true
fetchDepth: 100
lfs: true
submodules: recursive
persistCredentials: true
I want to make the fetchDepth dynamic. I could use a variable. But I also want to set a default value for that variable. The aim is, that a caller can include this file as template.
some_file.yml:
steps:
template: checkout.yml
I want to make possible that some_file.yml can set fetchDepth to some other value but does not need to do this. I tried with $(something) but how to I set a default? Or would $[something] the way to use?
I am stuck here, but I assume the answer could be very simple :-(
Thank you,