`$HOME` env var isn't resolved at `dependencies.cache_directories`

envars
caching
circle.yml

#1

My circle.yml looks like this:

dependencies:
  pre:
    - mkdir -p "$HOME/.some_dir"
  cache_directories:
    - "$HOME/.some_dir"

When the build runs, the “Save cache” section shows the following:

Creating dependency cache from the following paths:
  ✗ /home/ubuntu/my-repo-name/$HOME/.some_dir

So, it seems like $HOME var isn’t being resolved at all (it should be /home/ubuntu).
Thank you in advance, any help is very appreciated.
Regards.


#2