Hello,
I'm trying to create Bitbucket Pipeline which will be executed only if some specific config is changed in commit.
For example, we have this piece of config in config.yml
someKey:
value: string
anotherKey:
anothervalue: number
hdp:
version: 1.0.0
and I want to execute aws cli within bitbucket pipeline only if that version number is modified in commit, nothing else. Something like
<span>if</span> version value is modified <span>in</span> commit
<span>then</span>
some aws cli
<span>exit</span> 0
<span>else</span>
<span>echo</span> <span>"no relevant changes pushed"</span>
<span>exit</span> 1
<span>fi</span>
Is it possible directly with some condition in pipeline? If not, can it be done with bash?
I can image it could be done with git show and if version is mentioned in last commit, then my pipeline will be executed, but I would like to avoid using git is possible.
Thank you