I’m working on designing an orb for the company and I’m struggling with the following issue.
Let’s say I have an orb that exposes the command
release that accepts a parameter
starting-sha. This parameter should be read from somewhere during the CI run - so is not “static”
I tried using the BASH_ENV as described here but no success
This is an example:
steps: - run: name: get starting sha command: | echo "export SHA=foooo" >> $BASH_ENV # calculated parameter that needs to be passed to orb - run: name: print sha command: | echo $SHA - oso-ci/release: starting-sha: $SHA
Both “print sha” and “oso-ci/release” don’t see the $SHA parameter.
Question: how can I calculate the parameter and pass it to orb?