Skip to content

Commit 14f75a7

Browse files
committed
debug running
1 parent 074cac6 commit 14f75a7

File tree

3 files changed

+31
-7
lines changed

3 files changed

+31
-7
lines changed

dist/index.js

Lines changed: 18 additions & 4 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/index.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

index.js

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
const path = require("path");
2+
const fs = require("fs");
23
const core = require("@actions/core");
34
const tc = require("@actions/tool-cache");
45

@@ -15,13 +16,22 @@ async function setup() {
1516
// Get version of tool to be installed
1617
const version = core.getInput("version");
1718

18-
const pathToCr = await tc.downloadTool(getCrDownloadUrl(version));
19-
const pathToCaps = await tc.downloadTool(getCapsDownloadUrl(version));
19+
const pathToCr = await tc.downloadTool(
20+
getCrDownloadUrl(version),
21+
"/home/runner/bin/cr"
22+
);
23+
const pathToCaps = await tc.downloadTool(
24+
getCapsDownloadUrl(version),
25+
"/home/runner/bin/caps"
26+
);
2027

2128
// Expose the tool by adding it to the PATH
29+
fs.chmodSync(pathToCr, 0o755);
2230
core.addPath(path.dirname(pathToCr));
31+
2332
console.log(`add to path: ${pathToCr}`);
2433

34+
fs.chmodSync(pathToCaps, 0o755);
2535
core.addPath(path.dirname(pathToCaps));
2636
console.log(`add to path: ${pathToCaps}`);
2737
} catch (e) {

0 commit comments

Comments
 (0)