I'm following this documentation article and at the moment I have this code:
echo '::add-path::$HOME/.local/bin'
However, this doesn't work. I tried both single and double quotes. My only guess is that it doesn't like $HOME
, but I would really like to avoid hard-coding /home/runner
to be home directory agnostic.
Is there a way to add a local path in GitHub Actions?
It seems to work just fine
- run: |
mkdir -p $HOME/.local/bin
cp $(which ls) $HOME/.local/bin/lets-see
echo ::add-path::$HOME/.local/bin
- run: lets-see -a
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With