Skip to content

Commit

Permalink
fix: import * as exec
Browse files Browse the repository at this point in the history
  • Loading branch information
imjohnbo committed Nov 8, 2019
1 parent db3c7d6 commit 2c0de75
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
7 changes: 2 additions & 5 deletions setup-gcloud/dist/index.js
Expand Up @@ -8568,12 +8568,9 @@ var __importStar = (this && this.__importStar) || function (mod) {
result["default"] = mod;
return result;
};
var __importDefault = (this && this.__importDefault) || function (mod) {
return (mod && mod.__esModule) ? mod : { "default": mod };
};
Object.defineProperty(exports, "__esModule", { value: true });
const core = __importStar(__webpack_require__(470));
const exec_1 = __importDefault(__webpack_require__(986));
const exec = __importStar(__webpack_require__(986));
const toolCache = __importStar(__webpack_require__(533));
const js_base64_1 = __webpack_require__(867);
const fs_1 = __webpack_require__(747);
Expand Down Expand Up @@ -8614,7 +8611,7 @@ function run() {
});
yield fs_1.promises.writeFile(tmpKeyFilePath, js_base64_1.Base64.decode(serviceAccountKey));
// authenticate as the specified service account
yield exec_1.default.exec(`gcloud auth activate-service-account ${serviceAccountEmail} --key-file=${tmpKeyFilePath}`);
yield exec.exec(`gcloud auth activate-service-account ${serviceAccountEmail} --key-file=${tmpKeyFilePath}`);
}
catch (error) {
core.setFailed(error.message);
Expand Down
2 changes: 1 addition & 1 deletion setup-gcloud/src/setup-gcloud.ts
Expand Up @@ -15,7 +15,7 @@
*/

import * as core from '@actions/core';
import exec from '@actions/exec';
import * as exec from '@actions/exec';
import * as toolCache from '@actions/tool-cache';
import { Base64 } from 'js-base64';
import { promises as fs } from 'fs';
Expand Down

0 comments on commit 2c0de75

Please sign in to comment.