From 9f6c37ac5226da185f9f114441d70cf88250645b Mon Sep 17 00:00:00 2001 From: Daniel Anechitoaie <10779010+danechitoaie@users.noreply.github.com> Date: Thu, 12 Dec 2019 01:05:18 +0200 Subject: [PATCH] Updated tc.cacheFile example (#226) --- packages/tool-cache/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/tool-cache/README.md b/packages/tool-cache/README.md index e00bb4b0..335f34b6 100644 --- a/packages/tool-cache/README.md +++ b/packages/tool-cache/README.md @@ -57,7 +57,7 @@ You can also cache files for reuse. ```js const tc = require('@actions/tool-cache'); -tc.cacheFile('path/to/exe', 'destFileName.exe', 'myExeName', '1.1.0'); +const cachedPath = await tc.cacheFile('path/to/exe', 'destFileName.exe', 'myExeName', '1.1.0'); ``` #### Find