Skip to content

Commit 8a7f310

Browse files
committed
Update path.
1 parent b101c57 commit 8a7f310

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/main.ts

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,8 @@ import * as tc from "@actions/tool-cache";
55

66
async function run(): Promise<void> {
77
try {
8+
const PATH = process.env.PATH;
9+
810
const version = core.getInput("version");
911
const ver_lst = version.split(".");
1012
const emacs_major_ver = ver_lst[0];
@@ -54,9 +56,11 @@ async function run(): Promise<void> {
5456
}
5557

5658
const emacsZip = await tc.downloadTool(zipPath);
57-
const emacsDir = await tc.extractZip(emacsZip, './');
59+
const emacsDir = await tc.extractZip(emacsZip, PATH);
60+
61+
console.log(PATH);
5862

59-
const emacsBin = emacsDir + "bin";
63+
const emacsBin = PATH + "bin";
6064
core.exportVariable("PATH", "%PATH%;" + emacsBin);
6165

6266
core.endGroup();

0 commit comments

Comments
 (0)