From 9d0958ee57f9e14aab1ed0d7aa6301ea77bd8c22 Mon Sep 17 00:00:00 2001 From: Jonatan Ivanov Date: Thu, 8 Jun 2023 13:21:10 -0700 Subject: [PATCH] Use branch in every cache key Closes gh-3889 --- .circleci/config.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.circleci/config.yml b/.circleci/config.yml index c3a7723adb..0604559b3d 100644 --- a/.circleci/config.yml +++ b/.circleci/config.yml @@ -40,8 +40,7 @@ commands: steps: - checkout - restore_cache: - keys: - - gradle-dependencies-{{ .Branch }}-{{ checksum "build.gradle" }}-{{ checksum ".circleci/config.yml" }} + key: gradle-dependencies-{{ .Branch }}-{{ checksum "build.gradle" }}-{{ checksum ".circleci/config.yml" }} - run: name: downloadDependencies command: ./gradlew downloadDependencies --console=plain @@ -97,7 +96,7 @@ jobs: steps: - checkout - restore_cache: - key: gradle-dependencies-{{ checksum "build.gradle" }}-{{ checksum ".circleci/config.yml" }} + key: gradle-dependencies-{{ .Branch }}-{{ checksum "build.gradle" }}-{{ checksum ".circleci/config.yml" }} - deploy: name: Deployment command: sh ./gradle/deploy.sh