Following the official documentation for YAML anchors: https://support.atlassian.com/bitbucket-cloud/docs/yaml-anchors/#Override-values, a question arises.
Since it is possible to make substitutions within a step, such as injecting a new name to the step. Is it possible to somehow inject a new value for a variable? Please see my example below to better explain my question.
definitions:
steps:
-step: &my-step
name: 'I want to replace this and I can'
script:
- export TO_BE_CHANGED='I want to replace this and I can not'
pipelines:
branches:
master:
-step:
<<: *my-step
name: 'Injecting new name'
$TO_BE_CHANGED = 'Injecting new value'
Is there any way to modify the value of the variable TO_BE_CHANGED?
Thank you