From 6ef30bf250f3253ec089cc9f7a45260908380fdc 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) --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index e00bb4b..335f34b 100644 --- a/README.md +++ b/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