Add working-directory input
This commit is contained in:
parent
4518431205
commit
527ea9408c
4 changed files with 21 additions and 1 deletions
|
|
@ -2,6 +2,7 @@ import * as core from "@actions/core";
|
|||
|
||||
import {
|
||||
createStatusReportBase,
|
||||
getOptionalInput,
|
||||
getRequiredInput,
|
||||
getTemporaryDirectory,
|
||||
sendStatusReport,
|
||||
|
|
@ -47,6 +48,14 @@ async function run() {
|
|||
);
|
||||
}
|
||||
|
||||
const workingDirectory = getOptionalInput("working-directory");
|
||||
if (workingDirectory) {
|
||||
logger.info(
|
||||
`Changing autobuilder working directory to ${workingDirectory}`
|
||||
);
|
||||
process.chdir(workingDirectory);
|
||||
}
|
||||
|
||||
const result = await runResolveBuildEnvironment(config.codeQLCmd, logger, language);
|
||||
core.setOutput("environment", result);
|
||||
} catch (unwrappedError) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue