From 29392ffe17b4497fef3844df27285804c524b0ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Juan=20Juli=C3=A1n=20Merelo=20Guerv=C3=B3s?= Date: Tue, 18 Jan 2022 10:42:36 +0100 Subject: [PATCH] Include cache hit in example `cache-hit` is in fact not mentioned anywhere in the README file --- README.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index a21ccffc..5d3d4e9b 100644 --- a/README.md +++ b/README.md @@ -52,10 +52,12 @@ See the examples of using cache for `yarn` / `pnpm` and `cache-dependency-path` steps: - uses: actions/checkout@v2 - uses: actions/setup-node@v2 + id: setup with: node-version: '14' cache: 'npm' -- run: npm install +- if: !steps.setup.outputs.cache-hit != 'true' + run: npm install - run: npm test ```