Skip to content

Commit

Permalink
revert chdir fix
Browse files Browse the repository at this point in the history
  • Loading branch information
prepor committed Oct 23, 2019
1 parent 91eb806 commit ce8cb6a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
3 changes: 1 addition & 2 deletions dist/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -5832,14 +5832,13 @@ const core = __importStar(__webpack_require__(470));
const exec_1 = __webpack_require__(986);
const process = __importStar(__webpack_require__(765));
const fs = __importStar(__webpack_require__(747));
const path = __importStar(__webpack_require__(622));
const restm = __importStar(__webpack_require__(105));
const github = __webpack_require__(469);
const stack = core.getInput('stack', { required: true });
const args = core.getInput('args', { required: true });
const root = core.getInput('root');
if (root) {
process.chdir(path.join(process.cwd(), root));
process.chdir(root);
}
const workflow = github.context.workflow;
if (workflow) {
Expand Down
3 changes: 1 addition & 2 deletions src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import * as core from '@actions/core';
import { exec } from '@actions/exec';
import * as process from 'process'
import * as fs from 'fs'
import * as path from 'path'
import * as restm from 'typed-rest-client/RestClient';

const github = require('@actions/github');
Expand All @@ -11,7 +10,7 @@ const stack = core.getInput('stack', { required: true })
const args = core.getInput('args', { required: true })
const root = core.getInput('root')
if (root) {
process.chdir(path.join(process.cwd(), root))
process.chdir(root)
}

const workflow = github.context.workflow
Expand Down

0 comments on commit ce8cb6a

Please sign in to comment.