Skip to content

Commit 9a628c0

Browse files
committed
circle: Replace \w*-key with \w*-cache-key in context
I prefer it when the YAML anchors are named to what they actually represent. $ circleci config validate Config file at .circleci/config.yml is valid. Signed-off-by: Kristofer Rye <[email protected]> Tested-by: Kristofer Rye <[email protected]>
1 parent 61ae300 commit 9a628c0

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

.circleci/config.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ commands:
1313
description: 'Save the Bundler cache'
1414
steps:
1515
- save_cache:
16-
key: &bundler-key >-
16+
key: &bundler-cache-key >-
1717
v2-ruby-dependencies
1818
{{ arch }}
1919
{{ checksum "Gemfile.lock" }}
@@ -23,7 +23,7 @@ commands:
2323
description: 'Restore the Bundler cache'
2424
steps:
2525
- restore_cache:
26-
key: *bundler-key
26+
key: *bundler-cache-key
2727

2828
danger:
2929
description: 'Run Danger'
@@ -38,7 +38,7 @@ commands:
3838
description: 'Save the Gradle cache'
3939
steps:
4040
- save_cache:
41-
key: &gradle-key >-
41+
key: &gradle-cache-key >-
4242
v1-gradle-dependencies
4343
{{ arch }}
4444
{{ checksum "android/gradle/wrapper/gradle-wrapper.properties" }}
@@ -52,7 +52,7 @@ commands:
5252
description: 'Restore the Gradle cache'
5353
steps:
5454
- restore_cache:
55-
key: *gradle-key
55+
key: *gradle-cache-key
5656

5757
set-ruby-version:
5858
description: 'Set the Ruby Version'
@@ -76,7 +76,7 @@ commands:
7676
description: 'Save the Yarn cache'
7777
steps:
7878
- save_cache:
79-
key: &yarn-key >-
79+
key: &yarn-cache-key >-
8080
v3-yarn-dependencies
8181
{{ arch }}
8282
{{ checksum "yarn.lock" }}
@@ -86,7 +86,7 @@ commands:
8686
description: 'Restore the Yarn cache'
8787
steps:
8888
- restore_cache:
89-
key: *yarn-key
89+
key: *yarn-cache-key
9090

9191
workflows:
9292
version: 2

0 commit comments

Comments
 (0)