mirror of
https://github.com/actions/toolkit.git
synced 2026-08-27 00:00:33 +02:00
Updated tc.cacheFile example (#226)
This commit is contained in:
committed by
Bryan MacFarlane
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
|
||||||
|
|||||||
Reference in New Issue
Block a user