mirror of
https://git.mirrors.martin98.com/https://github.com/actions/toolkit
synced 2025-08-06 06:46:44 +08:00
Updated tc.cacheFile example (#226)
This commit is contained in:
parent
80e91ee891
commit
9f6c37ac52
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user