Skip to content

Commit

Permalink
permissions
Browse files Browse the repository at this point in the history
  • Loading branch information
prepor committed Nov 4, 2019
1 parent 5a39d7a commit 20ac010
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -2868,6 +2868,7 @@ var __importStar = (this && this.__importStar) || function (mod) {
Object.defineProperty(exports, "__esModule", { value: true });
const os = __importStar(__webpack_require__(87));
const util = __importStar(__webpack_require__(669));
const fs = __importStar(__webpack_require__(747));
const toolCache = __importStar(__webpack_require__(533));
const core = __importStar(__webpack_require__(470));
function downloadUrl(version) {
Expand All @@ -2888,6 +2889,7 @@ function run() {
let cachedToolpath = toolCache.find(binaryName, version);
if (!cachedToolpath) {
const downloadPath = yield toolCache.downloadTool(downloadUrl(version));
fs.chmodSync(downloadPath, '0755');
cachedToolpath = yield toolCache.cacheFile(downloadPath, binaryName, binaryName, version);
}
core.addPath(cachedToolpath);
Expand Down
2 changes: 2 additions & 0 deletions src/index.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as os from 'os';
import * as util from 'util';
import * as fs from 'fs';

import * as toolCache from '@actions/tool-cache';
import * as core from '@actions/core';
Expand All @@ -26,6 +27,7 @@ async function run() {
let cachedToolpath = toolCache.find(binaryName, version);
if (!cachedToolpath) {
const downloadPath = await toolCache.downloadTool(downloadUrl(version));
fs.chmodSync(downloadPath, '0755');
cachedToolpath = await toolCache.cacheFile(downloadPath, binaryName, binaryName, version)
}

Expand Down

0 comments on commit 20ac010

Please sign in to comment.