mirror of https://github.com/actions/toolkit
Updated tc.cacheFile example (#226)
parent
80e91ee891
commit
9f6c37ac52
|
@ -57,7 +57,7 @@ You can also cache files for reuse.
|
||||||
```js
|
```js
|
||||||
const tc = require('@actions/tool-cache');
|
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
|
#### Find
|
||||||
|
|
Loading…
Reference in New Issue