Hello,
I have a requirement to auto increment a number on one of input variable.
Is there any option to do it in yaml file?
input - 1.01
output needed is 1.0.2
Thank you
Hello,
I have a requirement to auto increment a number on one of input variable.
Is there any option to do it in yaml file?
input - 1.01
output needed is 1.0.2
Thank you
I don’t think you can do this in YAML, which is intended to be used as a markup language. However, in .gitlab-ci.yml
files, the lines in before_script
, script
and after_script
sections are all Bash commands, so you can use any Bash command you’d use on the pipeline to perform the increment for you.
However, if your number is a semver, you might be better off using some semver package to perform the increment.