- Put the
.sh
file anywhere in the repo - Inside the job that you want use the variables, in the steps section, add another step like
steps:
# Create extra env Variables
- run: cat ./.circleci/scripts/extra-variables.sh >> $BASH_ENV
- run: echo "base branch -> $BC_PR_BASE_BRANCH"
With that you are able to use it in any following step