From ce8cb6a098ae7bf6f4a496f08b8393ff335690e1 Mon Sep 17 00:00:00 2001 From: prepor Date: Wed, 23 Oct 2019 17:11:16 +0200 Subject: [PATCH] revert chdir fix --- dist/index.js | 3 +-- src/index.ts | 3 +-- 2 files changed, 2 insertions(+), 4 deletions(-) diff --git a/dist/index.js b/dist/index.js index 03a2e33..08eea4b 100644 --- a/dist/index.js +++ b/dist/index.js @@ -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) { diff --git a/src/index.ts b/src/index.ts index f51dbc9..1a6c544 100644 --- a/src/index.ts +++ b/src/index.ts @@ -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'); @@ -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