Variables in save_cache keys


#1

Hi,

The following config raises an error when you try to parse it, are the variable placeholders not available for this key?

Invalid:

   - save_cache:
          key: benchmarks_{{ .Branch }}
          paths:
            - {{ .Branch }}_old_bench.txt

valid:

   - save_cache:
          key: benchmarks_{{ .Branch }}
          paths:
            - old_bench_{{ .Branch }}.txt

#2

Ignore this, I now realise paths can not use the {{ }} variable syntax. Should have RTFM :slight_smile:


#3