Hello,
I have the following use case for bitbucket pipelines:
- i am building tags using a convention glob pattern, like "v?.?-*"
- my build scripts need to extract the first part as well as the second part of the glob (eg: the "?.?" as well as the "*")
I'm not sure if Pipelines provides a way to extract glob patterns as provided into variables available at run time, however I can do that manually via "sed". In thise case though, I would like to execute an initial step that performs splitting the current tag into its components and setting them into variables to be available for the following steps.
I know that Github actions allows one to set variables at runtime in a step so that they are available to subsequent steps. How can this be done with pipelines?
thanks