Adding jEnv to $BASH_ENV
Running which jenv or jenv versions before they are added to $BASH_ENV will cause a build to fail.
Solution
To resolve this you can add the following commands to clone jenv and setup $BASH_ENV
steps:
- run: git clone https://github.com/jenv/jenv.git ~/.jenv
- run: |
echo "export PATH=$HOME/.jenv/bin:$PATH" >> $BASH_ENV echo "eval $(jenv init -)" >> $BASH_ENV
- run: |
which jenv
jenv versionsThe jenv commands will now run successfully.