Skip to content

Commit f378ab9

Browse files
committed
Try cache path.
1 parent c83bf7a commit f378ab9

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/main.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -58,10 +58,11 @@ async function run(): Promise<void> {
5858
const emacsZip = await tc.downloadTool(zipPath);
5959
const emacsDir = await tc.extractZip(emacsZip, __dirname);
6060

61-
const emacsBin = __dirname + "\\bin";
61+
const emacsBin = emacsDir + "\\bin";
6262
console.log("emacsBin: " + emacsBin);
63+
const cachtedPath = await tc.cacheDir(emacsBin);
64+
core.addPath(emacsBin);
6365
core.exportVariable("PATH", "%PATH%;" + emacsBin);
64-
6566
core.endGroup();
6667

6768
} catch (error) {

0 commit comments

Comments
 (0)