From 877d45dbf0b33e45d389881e5367c82961169b12 Mon Sep 17 00:00:00 2001 From: ANIRUDDHA ADAK Date: Thu, 26 Nov 2026 20:58:48 +0530 Subject: [PATCH] Fix hashFiles explanation and example cache key --- .../reference/workflows-and-actions/dependency-caching.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/actions/reference/workflows-and-actions/dependency-caching.md b/content/actions/reference/workflows-and-actions/dependency-caching.md index 05dc1ddcb271..95f2539bac52 100644 --- a/content/actions/reference/workflows-and-actions/dependency-caching.md +++ b/content/actions/reference/workflows-and-actions/dependency-caching.md @@ -146,10 +146,10 @@ npm-${{ hashFiles('package-lock.json') }} {% endraw %} -{% data variables.product.prodname_dotcom %} evaluates the expression `hash "package-lock.json"` to derive the final `key`. +{% data variables.product.prodname_dotcom %} evaluates the expression to derive the final `key`. The `hashFiles()` function returns a SHA-256 hash of the file's contents, so the resulting key contains the full hash. For example: ```yaml -npm-d5ea0750 +npm-<64-character SHA-256 hash> ``` ### Using the output of the `cache` action