From 59bc1df8dfa618d260c32cdf352b75a60489d3be Mon Sep 17 00:00:00 2001
From: Kipras Melnikovas <kipras@kipras.org>
Date: Thu, 6 Feb 2020 17:53:25 +0200
Subject: [PATCH] Explain which ID to use for `cache-hit` in yarn's example

Signed-off-by: Kipras Melnikovas <kipras@kipras.org>
---
 examples.md | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/examples.md b/examples.md
index fb5c01e..1b0d0c0 100644
--- a/examples.md
+++ b/examples.md
@@ -162,7 +162,7 @@ The yarn cache directory will depend on your operating system and version of `ya
   run: echo "::set-output name=dir::$(yarn cache dir)"
 
 - uses: actions/cache@v1
-  id: yarn-cache
+  id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
   with:
     path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
     key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}