setup-miniconda
setup-miniconda copied to clipboard
Issue #208 - Do not move non-existing files
This is a small improvement to not try to move .bashrc into .profile if .bashrc does not even exists.
This is needed for non-ephemeral self-hosted Github Actions runners where one VM could run multiple runners.
There is still a chance another GHA runner to move the file between the existsSync
and io.mv
calls.
There is still a chance another GHA runner to move the file between the
existsSync
andio.mv
calls.
I don't see a solution for this problem except stop using the shell rc files completely.
Would it be possible to just issue conda activate XYZ
when/where needed instead of adding bashExtraText
to ~/.profile
?
Thanks for working on this @martin-g
Sorry for the delays! And thanks again for your contribution 🚀