I want to cache dependencies per branch, therefore I create a text file containing the branch number
definitions:
steps:
- step: &prepare
name: prepare environment
script:
- echo ${BITBUCKET_BRANCH} > branch.txt
artifacts:
- branch.txt
But I'm unable to use branch.txt in the cache definitions. I tried this:
caches:
node-modules:
key:
files:
- branch.txt
path: node_modules/
How can I achieve this?